diff options
-rw-r--r-- | main/randrproto/APKBUILD | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/main/randrproto/APKBUILD b/main/randrproto/APKBUILD index d4c4da7936..540b34f788 100644 --- a/main/randrproto/APKBUILD +++ b/main/randrproto/APKBUILD @@ -1,34 +1,31 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=randrproto pkgver=1.5.0 -pkgrel=1 +pkgrel=2 pkgdesc="X11 RandR extension wire protocol" url="http://xorg.freedesktop.org/" -arch="all" +arch="noarch" license="custom" depends="" -makedepends="" +makedepends="util-macros" +options="!check" # No test suite +subpackages="$pkgname-doc" source="http://www.x.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2" -_builddir="$srcdir/$pkgname-$pkgver" - -prepare() { - cd "$_builddir" -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make } package() { - cd "$srcdir"/$pkgname-$pkgver - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } |