aboutsummaryrefslogtreecommitdiffstats
path: root/testing/plib/APKBUILD
blob: a55f7497a36c8cd3f12d15885277124437b3083d (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=plib
pkgver=1.8.5
pkgrel=0
pkgdesc="Portable Game Library"
url="http://plib.sourceforge.net"
arch="all"
license="LGPL"
depends=
depends_dev=
makedepends="$depends_dev libxi-dev libxmu-dev mesa-dev"
install=
subpackages=
source="http://plib.sourceforge.net/dist/$pkgname-$pkgver.tar.gz
	includes-fix.patch"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare || return 1

	cd "$builddir"
	update_config_guess && update_config_sub
}

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

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

	# remove the 2 lines below (and this) if there is no init.d script
	# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="47a6fbf63668c1eed631024038b2ea90  plib-1.8.5.tar.gz
62895ce3225fe891438d0fb311e12a7f  includes-fix.patch"
sha256sums="485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32  plib-1.8.5.tar.gz
cbbb21ce6bf4c298328da6a06adbb2aedf1fea0844ba72de67aec577c90d8a3f  includes-fix.patch"
sha512sums="17154cc77243fe576c2bcbcb0285b98aef1a0634658f5473e95fe0ac8fa3ed477dbe5620e44ccf0b7cc616f812af0cd44d6fcbba0c563180d3b61c9d6f158e1d  plib-1.8.5.tar.gz
a7a3f0514c698945b47cbf5242b3213df9ac9265b52268b6dfea50e51597dadf0f4e83608bc6b25d6deb22b42505162e25192de082590effbdda8f38d0860dc8  includes-fix.patch"