aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-apm/APKBUILD
blob: 5a68e3c0bed61d2904dd1beae90520edcdc0182f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-apm
pkgver=1.2.5
pkgrel=7
pkgdesc="Alliance ProMotion video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="xorg-server-dev libxi-dev fontsproto randrproto
	videoproto renderproto"

source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	mibstore.patch
	"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="bce02d48c66932d082786167af22835a  xf86-video-apm-1.2.5.tar.bz2
8be9e7447c739b7cf9a80ea8ce9da852  mibstore.patch"
sha256sums="953b04320117b14c5b7efb37de45cef45592409f639c2aa87b7e2d77dc8d3d0f  xf86-video-apm-1.2.5.tar.bz2
be06cce5eb0b8eb070321e293f5cd9b7aa947d920d23cc962f7121191ba4180b  mibstore.patch"
sha512sums="652307d5e21fcd0df890b941821f409cc0c9846133cf7e522799710d28ebf0d8ff2d8ead3235d8207169f416a6561bc14b4fedb1baaddb1bddf03007372af622  xf86-video-apm-1.2.5.tar.bz2
f27a8f9f3206de54ce9f05596d78829832e7576b5d515d22b0052e39c70fef63e85f016c2c1dfad45aa6d09cb59582d101854552fc44970275f1b38688924d52  mibstore.patch"