summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2a9ce843da9b8f2e2dd6bfa8545c9caac3edb7e (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
# Maintainer: actionless <actionless DOT loveless PLUS aur AT gmail MF com>

pkgname=geh-gtk2-git
pkgver=0.4.0.r9.g26bfe3a
pkgrel=2
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
	mkdir -p "$pkgdir/usr/bin"
	mv "$pkgdir/bin/"* "$pkgdir/usr/bin"
	rmdir "$pkgdir/bin"
}

# vim: ft=PKGBUILD