blob: 6c4b8c29e786c0904253e1d29c80636490e598c8 (
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
51
52
53
54
55
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-openchrome
pkgver=0.3.3
pkgrel=1
pkgdesc="X.Org driver for VIA/S3G cards"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="pkgconfig xorg-server-dev libxi-dev libxvmc-dev fontsproto glproto
randrproto videoproto renderproto xf86driproto mesa-dev
"
source="http://xorg.freedesktop.org/releases/individual/driver/xf86-video-openchrome-$pkgver.tar.bz2
openchrome.xinf
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p0 -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
find "$pkgdir" -name '*.la' -delete
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
install -Dm644 "$srcdir"/openchrome.xinf \
"$pkgdir"/usr/share/hwdata/videoaliases/openchrome.xinf
}
md5sums="f21abcdf87f73b5b547491281e894c87 xf86-video-openchrome-0.3.3.tar.bz2
d6906087f0e93ea2d98e553f4dfbcc97 openchrome.xinf"
sha256sums="e49e2f1e5dac86408e5a74b87038cc4082d2c3fba4e0579823161991432412ed xf86-video-openchrome-0.3.3.tar.bz2
7a7394733cf933d6e442b346d8f1d0ad18b7e126f0ff67e7a01d4af300ef9e06 openchrome.xinf"
sha512sums="ed1c30a6d92b804648de324d98ca61bd7887b4b97ed94e5b0c1f5abaf7d0dbb5ba1dc79e7c35a8cd76bff0d5b05594921bddc9007ef9ba00e72d0b9bd678de9e xf86-video-openchrome-0.3.3.tar.bz2
b900999fc678f0efdcb526d2f0e0f141ed8ca9403bd2b9895c96be2f5efc424feb50f1828c54cdaf0d7d9b9e723e834068ce36841fac97a2e5209873e8e711c3 openchrome.xinf"
|