summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoractionless2020-10-06 19:04:50 +0200
committeractionless2020-10-06 19:05:45 +0200
commit8274d8c5992e2e084eacf4de0efdb1aec1a5aeb9 (patch)
tree474ce6229cb125178fbb677cce7decbace69d422
parent9a3c3a6f2c8b79f6f10e9dba09f51e9461fe5ffe (diff)
downloadaur-8274d8c5992e2e084eacf4de0efdb1aec1a5aeb9.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 c5714acb070..a0b85124a4f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = geh-git
pkgdesc = A simple command line image viewer written in C/GTK3 with various nice features.
pkgver = 0.4.0.r9.g26bfe3a
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/software-revive/geh-rv
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index a69584f9e5e..b758fcdcc2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=geh-git
pkgver=0.4.0.r9.g26bfe3a
-pkgrel=3
+pkgrel=4
pkgdesc="A simple command line image viewer written in C/GTK3
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" --disable-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