summaryrefslogtreecommitdiffstats
path: root/main/libidl/APKBUILD
blob: 714c105e1251e649469424c6d7351fe0bb8380ab (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libidl
pkgver=0.8.14
pkgrel=2
pkgdesc="library for parsing Interface Definition Language files"
url="http://www.gnome.org/"
license="GPL"
arch="all"
depends=
depends_dev="glib-dev"
makedepends="${depends_dev} flex bison"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnome.org/pub/gnome/sources/libIDL/${pkgver%.*}/libIDL-$pkgver.tar.bz2"

_builddir="$srcdir"/libIDL-$pkgver

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="bb8e10a218fac793a52d404d14adedcb  libIDL-0.8.14.tar.bz2"