aboutsummaryrefslogtreecommitdiffstats
path: root/main/glib/APKBUILD
blob: 97a9389bbda3fe3a939b688481e4a6e3186c1b3c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glib
pkgver=2.26.0
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 zlib-dev bzip2-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 zlib-dev bzip2-dev pkgconfig"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	# busybox env does not handle the -w after perl. we remove it for now
	sed -i -e '1,1s/ -w//' gobject/glib-mkenums.in
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--mandir=/usr/share/man
	make || return 1
}

package() {
	cd "$_builddir"
	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="9b7dc61f5e389e1cff277a6350c37397  glib-2.26.0.tar.bz2"