aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtkman/APKBUILD
blob: 0c2e712f27d9d697d31cb06942828c49c1f4510f (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=1.0
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="f03b1f91d0bd82f7f897a17f4cffaf39  gtkman-1.0.tar.gz
4532f1d215a61d18c4eb36882a2a7502  fix-man-install.patch"
sha256sums="1723d9f578b8ebaf4b375f840dd631c222c08358214e9f258cce543c67b6a397  gtkman-1.0.tar.gz
154b4ed6911425ef43db7b42a1ac5f09f8af2e4a99f216b5c0b8c3a0bbaf5f78  fix-man-install.patch"
sha512sums="319c6c89c544be52c6bfe8c9770109143ba80ff01e4fb804dfb31b8e55c86345e3b95def43726f4101d915f274e3c7e2234a64324fb5ad795e78f7c4fb1bf120  gtkman-1.0.tar.gz
3c99d27559e1bdccfe11eb8bfe0880378018de77781d80b51d0889e26c37afd748906b26bfbea2a5ac14bee288452c457ef7c60f8188993f407bd96b6c940ac1  fix-man-install.patch"