summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoractionless2020-10-06 19:03:22 +0200
committeractionless2020-10-06 19:03:22 +0200
commit64c526a27d549ebde1df491b1ff799d72770823c (patch)
tree3e920f78a1acebf41a7628c1fdab2c0c2ca3f7c8
parentfb96a8cd6e3f04fbaa6fb618e512c04c53f76b84 (diff)
downloadaur-64c526a27d549ebde1df491b1ff799d72770823c.tar.gz
move license file
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD17
2 files changed, 11 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7e375a2b5c0..719faf33edb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = geh-gtk2-git
pkgdesc = A simple command line image viewer written in C/GTK2 with various nice features.
pkgver = 0.4.0.r9.g26bfe3a
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/software-revive/geh-rv
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index b2a9ce843da..bbe586e7a49 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=geh-gtk2-git
pkgver=0.4.0.r9.g26bfe3a
-pkgrel=2
+pkgrel=3
pkgdesc="A simple command line image viewer written in C/GTK2
with various nice features."
arch=('x86_64' 'i686')
@@ -27,23 +27,26 @@ conflicts=(
)
pkgver() {
- cd "${srcdir}/geh"
+ cd "$srcdir/geh"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "${srcdir}/geh"
+ cd "$srcdir/geh"
./autogen.sh
./configure --prefix="$pkgdir" --enable-gtk2
make
}
package() {
- cd "${srcdir}/geh"
+ cd "$srcdir/geh"
make install
- mkdir -p "$pkgdir/usr/bin"
- mv "$pkgdir/bin/"* "$pkgdir/usr/bin"
- rmdir "$pkgdir/bin"
+ ### fix prefix dir:
+ mkdir -p "$pkgdir/usr/"
+ mv "$pkgdir"/{bin,share} "$pkgdir/usr/"
+ ### move license file:
+ install -Dm644 "$pkgdir/usr/share/doc/geh/LICENSE" "$pkgdir/usr/share/licenses/geh/LICENSE"
+ rm "$pkgdir/usr/share/doc/geh/LICENSE"
}
# vim: ft=PKGBUILD