diff options
Diffstat (limited to 'main/renderproto/APKBUILD')
-rw-r--r-- | main/renderproto/APKBUILD | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/main/renderproto/APKBUILD b/main/renderproto/APKBUILD index 8fee739833..cecdb3d493 100644 --- a/main/renderproto/APKBUILD +++ b/main/renderproto/APKBUILD @@ -11,14 +11,25 @@ makedepends="" subpackages="$pkgname-doc" source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2" -build () { - cd "$srcdir"/$pkgname-$pkgver +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + update_config_sub || return 1 +} + +build() { + cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } |