blob: fbe1f164de674ebbfd044ec521191a4655526797 (
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
48
49
50
51
52
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glib
pkgver=2.36.1
pkgrel=0
pkgdesc="Common C routines used by Gtk+ and other libs"
url="http://www.gtk.org"
arch="all"
license='GPL'
depends=
triggers="$pkgname.trigger=/usr/share/glib-2.0/schemas:/usr/lib/gio/modules"
depends_dev="perl gettext-dev libiconv-dev zlib-dev bzip2-dev libffi-dev"
makedepends="$depends_dev"
source="http://ftp.gnome.org/pub/gnome/sources/glib/${pkgver%.*}/glib-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir/" install
rm "$pkgdir"/usr/lib/*.la
}
# move the stuff in /usr/bin to the glib-dev package
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/bin/
cd "$pkgdir"/usr/bin
mv glib-genmarshal glib-gettextize glib-mkenums gobject-query \
gtester gtester-report \
"$subpkgdir"/usr/bin/
}
md5sums="a3bbee44a13facb5a3cab18be5ece14c glib-2.36.1.tar.xz"
sha256sums="7de37586794e92c024feebe5d306bf5f245fef4803c3666af1ae8dac6ee10b24 glib-2.36.1.tar.xz"
sha512sums="e738ef537fc8b05f535a42a46c3e5cf8d7c9c3aed788adea1bfd924e6031e6f3e8366850a3a1a0ea2c2a4c5e54f08eacf6cccbf32fb8a361b62a6caf9c4b7852 glib-2.36.1.tar.xz"
|