commit ad29ddefdd5419b043cbb0d4f9660d736391a500
parent b9ac1c4831e9150a6b7dc5e758c41e73ff6773fc
Author: René Wagner <rwagner@rw-net.de>
Date: Sat, 18 Jul 2020 09:26:35 +0200
create ARCH package on build
Diffstat:
2 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/.build.yml b/.build.yml
@@ -7,7 +7,7 @@ packages:
sources:
- https://git.sr.ht/~rwa/photo-helpers
artifacts:
- - photo-helpers/snapshot_linux_amd64.tgz
+ - photo-helpers/output.tar
tasks:
- build: |
cd photo-helpers
@@ -21,8 +21,10 @@ tasks:
/usr/bin/vendor_perl/pp -z 9 -f Bleach -o bin/sposc silkypix_orphaned_sidecar_cleaner.pl
/usr/bin/vendor_perl/pp -z 9 -f Bleach -o bin/spmvsc silkypix_multiversion_sidecar_cleaner.pl
- package: |
- cd photo-helpers
+ TAG=`date +"%Y%m%d"`
+ cd photo-helpers/bin
+ tar -czf ../${TAG}_linux_amd64.tar.gz *
+ mv * ../
+ cf ..
makepkg
- cf bin
- tar -czf ../snapshot_linux_amd64.tgz *
-
+ tar -cf output.tar *.tar.gz *.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: René Wagner < rwagner at rw-net dot de >
pkgname=photo-helpers
-pkgver=20200717
+pkgver=20200718
pkgrel=1
pkgdesc='simple photo workflow helper scripts'
arch=('x86_64')
@@ -9,12 +9,15 @@ license=('BSD')
url='https://git.sr.ht/~rwa/photo-helpers'
provides=('photo-helpers')
options=(!strip)
-source=("bin/afm bin/jd bin/sposc bin/spmvsc")
-sha256sums=('SKIP SKIP SKIP SKIP')
+source=("afm jd sposc spmvsc")
+sha256sums=('SKIP')
package() {
mkdir -p "${pkgdir}/usr/bin"
- cp * "${pkgdir}/usr/bin/"
- chmod 755 "${pkgdir}/usr/bin/"
+ install -Dm755 afm "${pkgdir}/usr/bin/"
+ install -Dm755 jd "${pkgdir}/usr/bin/"
+ install -Dm755 sposc "${pkgdir}/usr/bin/"
+ install -Dm755 spmvsc "${pkgdir}/usr/bin/"
+
}