aboutsummaryrefslogtreecommitdiffstats
path: root/community/libgtop/APKBUILD
blob: 5ff88697b319a15829f46e838252197941b071a9 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgtop
pkgver=2.34.0
pkgrel=0
pkgdesc="GNOME top library"
url="http://www.gnome.org/"
arch="all"
license="LGPL"
depends=
depends_dev="glib-dev libxau-dev libx11-dev"
makedepends="$depends_dev intltool linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz
	"

_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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	make || return 1
}

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

md5sums="9c47c8d6d50892857c90b4546d19da82  libgtop-2.34.0.tar.xz"
sha256sums="8d8ae39e700d1c8c0b3e1391ed10ca88e6fc14f49d175d516dab6e3313b4ee2a  libgtop-2.34.0.tar.xz"
sha512sums="d9b8a34f9aedcf73e56a29cbde8a404911d04e87e4edf286720d7e16644a99a5e543605ed489fcf3a7a005ada7f5c15fef524c90e7ae0770793f1f2711959b93  libgtop-2.34.0.tar.xz"