summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbe586e7a49765f665471e9e6b2b5275f8d7be8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: actionless <actionless DOT loveless PLUS aur AT gmail MF com>

pkgname=geh-gtk2-git
pkgver=0.4.0.r9.g26bfe3a
pkgrel=3
pkgdesc="A simple command line image viewer written in C/GTK2
with various nice features."
arch=('x86_64' 'i686')
url="https://github.com/software-revive/geh-rv"
license=('MIT')
source=(
	"geh::git+${url}.git#branch=master"
)
md5sums=('SKIP')
depends=(
	'gtk2'
)
makedepends=(
	'git'
)
optdepends=()
provides=('geh')
conflicts=(
	'geh'
	'geh-git'
	'geh-gtk2'
)

pkgver() {
	cd "$srcdir/geh"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/geh"
	./autogen.sh
	./configure --prefix="$pkgdir" --enable-gtk2
	make
}

package() {
	cd "$srcdir/geh"
	make install
	### 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