aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtkman/APKBUILD
blob: 13bd2cff90b414ff68aaa5b2bb3769fe73bd1dcd (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtkman
pkgver=0.9
pkgrel=0
pkgdesc="GTK+2 manual page viewer"
url="http://www.salixos.org/wiki/index.php/GTKMan"
arch="noarch"
license="GPLv3"
depends="py-gtk"
depends_dev=
makedepends="gettext intltool"
install=""
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/gapan/$pkgname/archive/$pkgver.tar.gz
fix-man-install.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	DESTDIR="$pkgdir" PREFIX=/usr make install || return 1
}

md5sums="7c76fed1481dfba477bba4cb14b6893f  gtkman-0.9.tar.gz
4532f1d215a61d18c4eb36882a2a7502  fix-man-install.patch"
sha256sums="0b272c0210f5fefdcc1a9dada81aa249edbb5a64122f05f070f9160915fa2a2c  gtkman-0.9.tar.gz
154b4ed6911425ef43db7b42a1ac5f09f8af2e4a99f216b5c0b8c3a0bbaf5f78  fix-man-install.patch"
sha512sums="86e36f6f41a208bed83800da1a96bfd1314c7c789aa2ec8e617636b58c5c8fcb029e6933ba11f2b34fa1b87d4e45e34af345d9ce5daed8a005320e1ef993e103  gtkman-0.9.tar.gz
3c99d27559e1bdccfe11eb8bfe0880378018de77781d80b51d0889e26c37afd748906b26bfbea2a5ac14bee288452c457ef7c60f8188993f407bd96b6c940ac1  fix-man-install.patch"