aboutsummaryrefslogtreecommitdiffstats
path: root/testing/plib/APKBUILD
blob: 1ee1695a95a7b537d3e9b4b16bf8dc005537af10 (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
# 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
}

sha512sums="17154cc77243fe576c2bcbcb0285b98aef1a0634658f5473e95fe0ac8fa3ed477dbe5620e44ccf0b7cc616f812af0cd44d6fcbba0c563180d3b61c9d6f158e1d  plib-1.8.5.tar.gz
a7a3f0514c698945b47cbf5242b3213df9ac9265b52268b6dfea50e51597dadf0f4e83608bc6b25d6deb22b42505162e25192de082590effbdda8f38d0860dc8  includes-fix.patch"