aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/xev/APKBUILD18
-rw-r--r--main/xvinfo/APKBUILD16
2 files changed, 28 insertions, 6 deletions
diff --git a/main/xev/APKBUILD b/main/xev/APKBUILD
index 2123a720b3..3fc649c7ee 100644
--- a/main/xev/APKBUILD
+++ b/main/xev/APKBUILD
@@ -10,9 +10,15 @@ subpackages="$pkgname-doc"
makedepends="pkgconfig libx11-dev"
depends=
source="http://xorg.freedesktop.org/releases/individual/app/$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 \
@@ -20,7 +26,13 @@ build ()
--mandir=/usr/share/man \
|| return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="a9532c3d1683c99bb5df1895cb3a60b1 xev-1.0.3.tar.bz2"
+sha256sums="d4ac7ae154ee9733be27a5f55586abb9362c768f5fb8a4fc7fd2645100a9313a xev-1.0.3.tar.bz2"
+sha512sums="b4668691ffa8a9687cc3709da6a321e43b349ba2733c5e57977c1712a68007295c1ec4984f81f0559bb4c8c4a90720a02797c1163baba4d309f2e1cdb25ac17e xev-1.0.3.tar.bz2"
diff --git a/main/xvinfo/APKBUILD b/main/xvinfo/APKBUILD
index 8e28a12210..00640e57e1 100644
--- a/main/xvinfo/APKBUILD
+++ b/main/xvinfo/APKBUILD
@@ -10,9 +10,15 @@ subpackages="$pkgname-doc"
makedepends="pkgconfig libxv-dev"
depends=
source="http://xorg.freedesktop.org/releases/individual/app/$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 \
@@ -20,6 +26,10 @@ build ()
--mandir=/usr/share/man \
|| return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}