aboutsummaryrefslogtreecommitdiffstats
path: root/main/glib/APKBUILD
blob: a96c43c9651c49199cb55aa520d3a0f4100446a0 (plain) (blame)
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
# Maintainer: Carlo Landmeter <clandmeter at gmail.com>
pkgname=glib
pkgver=2.22.2
pkgrel=0
pkgdesc="Common C routines used by Gtk+ and other libs"
url="http://www.gtk.org"
license='GPL'
depends=
makedepends="gettext-dev libiconv-dev pkgconfig"
source="http://ftp.gnome.org/pub/gnome/sources/glib/${pkgver%.*}/glib-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-dev"

depends_dev="perl gettext-dev libiconv-dev pkgconfig"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	# busybox env does not handle the -w after perl. we remove it for now
	sed -i -e '1,1s/ -w//' gobject/glib-mkenums.in

	./configure --prefix=/usr \
		--mandir=/usr/share/man
	make || return 1
	make DESTDIR="$pkgdir/" install
}

# move the stuff in /usr/bin to the glib-dev package
dev() {
	default_dev
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

md5sums="846a86c74b74d5b16826aa5508940f9b  glib-2.22.2.tar.bz2"