From c128234add7191a08e96f95b7993287810bf2e3f Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Sun, 28 Jul 2024 13:22:23 +0200 Subject: move files to OS specific folder --- .gitignore | 2 +- Makefile | 23 ----------------------- PKGBUILD | 31 ------------------------------- arch/.gitignore | 4 ++++ arch/Makefile | 23 +++++++++++++++++++++++ arch/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 6 files changed, 59 insertions(+), 55 deletions(-) delete mode 100644 Makefile delete mode 100644 PKGBUILD create mode 100644 arch/.gitignore create mode 100644 arch/Makefile create mode 100644 arch/PKGBUILD diff --git a/.gitignore b/.gitignore index 1255cd2..0fadfd5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ * !/.gitignore !/Makefile -!/PKGBUILD +!/arch diff --git a/Makefile b/Makefile deleted file mode 100644 index 0e463fe..0000000 --- a/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -all: makepkg - -makepkg: makepkg-x86_64 makepkg-arm64 - -makepkg_x86_64: - CARCH="x86_64" /usr/bin/makepkg --sign - -makepkg_arm64: - CARCH="arm64" /usr/bin/makepkg --sign - -clean: clean-pkg clean-pkgdir clean-srcdir clean-src - -clean-pkg: - rm -vf goreleaser-chglog-bin-0.6.1-1-{x86_64,arm64}.pkg.tar.zst{,.sig} - -clean-pkgdir: - rm -vfr pkg/ - -clean-src: - rm -vf chglog_Linux_{x86_64,arm64}.tar.gz - -clean-srcdir: - rm -vfr src/ diff --git a/PKGBUILD b/PKGBUILD deleted file mode 100644 index d56d214..0000000 --- a/PKGBUILD +++ /dev/null @@ -1,31 +0,0 @@ -# vim:syntax=PKGBUILD:ts=4 -pkgname=goreleaser-chglog-bin -pkgver=0.6.1 -pkgrel=1 -pkgdesc='A simple to use, single-binary changelog generator with reproducible results' -arch=( 'x86_64' 'arm64' ) -url=https://github.com/goreleaser/chglog -license=( 'MIT' ) -groups=( 'packaging-tools' ) -#depends=() -#makedepends=() -#checkdepends=() -#optdepends=() -provides=( 'chglog' ) -conflicts=( 'goreleaser-chglog' ) -#replaces=() -options=( '!debug' ) -#backup=() -source_x86_64=( 'https://github.com/goreleaser/chglog/releases/download/v0.6.1/chglog_Linux_x86_64.tar.gz' ) -b2sums_x86_64=( - '537a0d6d39d45dfa7c4a8b37878e742aabc40cac23883ee9c56fa1961101abed3ac744a328977cd930779dbd382a134bde95ccbcfd712b2e99f462b808217e93' -) -source_arm64=( 'https://github.com/goreleaser/chglog/releases/download/v0.6.1/chglog_Linux_arm64.tar.gz' ) -b2sums_arm64=( - '504fe0d9217080b1b68ac9cff61741f5c7a2cb289eac4dcafd2e9c53921c8fc48f8cc558f39747180f91eec203c1f6e57b73ef30a1b731735611024e75f05038' -) - -package() { - install -Dvm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -Dvm0755 chglog "${pkgdir}/usr/bin/chglog" -} diff --git a/arch/.gitignore b/arch/.gitignore new file mode 100644 index 0000000..1255cd2 --- /dev/null +++ b/arch/.gitignore @@ -0,0 +1,4 @@ +* +!/.gitignore +!/Makefile +!/PKGBUILD diff --git a/arch/Makefile b/arch/Makefile new file mode 100644 index 0000000..0e463fe --- /dev/null +++ b/arch/Makefile @@ -0,0 +1,23 @@ +all: makepkg + +makepkg: makepkg-x86_64 makepkg-arm64 + +makepkg_x86_64: + CARCH="x86_64" /usr/bin/makepkg --sign + +makepkg_arm64: + CARCH="arm64" /usr/bin/makepkg --sign + +clean: clean-pkg clean-pkgdir clean-srcdir clean-src + +clean-pkg: + rm -vf goreleaser-chglog-bin-0.6.1-1-{x86_64,arm64}.pkg.tar.zst{,.sig} + +clean-pkgdir: + rm -vfr pkg/ + +clean-src: + rm -vf chglog_Linux_{x86_64,arm64}.tar.gz + +clean-srcdir: + rm -vfr src/ diff --git a/arch/PKGBUILD b/arch/PKGBUILD new file mode 100644 index 0000000..d56d214 --- /dev/null +++ b/arch/PKGBUILD @@ -0,0 +1,31 @@ +# vim:syntax=PKGBUILD:ts=4 +pkgname=goreleaser-chglog-bin +pkgver=0.6.1 +pkgrel=1 +pkgdesc='A simple to use, single-binary changelog generator with reproducible results' +arch=( 'x86_64' 'arm64' ) +url=https://github.com/goreleaser/chglog +license=( 'MIT' ) +groups=( 'packaging-tools' ) +#depends=() +#makedepends=() +#checkdepends=() +#optdepends=() +provides=( 'chglog' ) +conflicts=( 'goreleaser-chglog' ) +#replaces=() +options=( '!debug' ) +#backup=() +source_x86_64=( 'https://github.com/goreleaser/chglog/releases/download/v0.6.1/chglog_Linux_x86_64.tar.gz' ) +b2sums_x86_64=( + '537a0d6d39d45dfa7c4a8b37878e742aabc40cac23883ee9c56fa1961101abed3ac744a328977cd930779dbd382a134bde95ccbcfd712b2e99f462b808217e93' +) +source_arm64=( 'https://github.com/goreleaser/chglog/releases/download/v0.6.1/chglog_Linux_arm64.tar.gz' ) +b2sums_arm64=( + '504fe0d9217080b1b68ac9cff61741f5c7a2cb289eac4dcafd2e9c53921c8fc48f8cc558f39747180f91eec203c1f6e57b73ef30a1b731735611024e75f05038' +) + +package() { + install -Dvm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dvm0755 chglog "${pkgdir}/usr/bin/chglog" +} -- cgit v1.2.3