aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-sunleo/APKBUILD
blob: 68e05710c6758adc340a0f5e59bb5bb6c4fe9c41 (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-sunleo
pkgver=1.2.1
pkgrel=3
pkgdesc="Leo video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
	videoproto renderproto"

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

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

build() {
	cd "$_builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="6f998ea58bf3c86307991cce67720940  xf86-video-sunleo-1.2.1.tar.bz2
c3199c542604db52a3c43cc79da64ebd  git-fixes.patch"
sha256sums="1ace84e14edbbf76728d61af7b1440a461ddf22f1dba0f025879d286311f491d  xf86-video-sunleo-1.2.1.tar.bz2
b185411f00b19214b9e95b2ca766373b652e9f94ca9a06cdf8fdc08dca07c359  git-fixes.patch"
sha512sums="52f1578dba4f77e2d999ea2017325df6ac324d60ec2e62677ef9a900aabb183650bcd0923b5a0a1cd7c13c9e80c8a47223b96be651e5a5ecb635654f3eb67af1  xf86-video-sunleo-1.2.1.tar.bz2
0d299c8e26b585536dc2d97ebdfff243e15f600e4b35fe377b17cf0031b5419719d980da017981eb0881f067d4497538061c1b60e20107cfed13b6eedff51dd8  git-fixes.patch"