Mail archive
alpine-aports

[alpine-aports] [PATCH 1/2] main/libevdev: improve abuild

From: Daniel Sabogal <dsabogalcc_at_gmail.com>
Date: Sat, 27 Aug 2016 10:46:07 -0400

---
 main/libevdev/APKBUILD | 23 ++++++-----------------
 1 file changed, 6 insertions(+), 17 deletions(-)
diff --git a/main/libevdev/APKBUILD b/main/libevdev/APKBUILD
index f20d158..8e2ec31 100644
--- a/main/libevdev/APKBUILD
+++ b/main/libevdev/APKBUILD
_at_@ -1,31 +1,20 @@
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 pkgname=libevdev
 pkgver=1.5.3
-pkgrel=0
+pkgrel=1
 pkgdesc="Kernel Evdev Device Wrapper Library"
 url="https://www.freedesktop.org/wiki/Software/libevdev"
 arch="all"
 license="MIT"
 depends=""
-depends_dev=""
-makedepends="$depends_dev python linux-headers"
-install=""
+makedepends="python linux-headers"
 subpackages="$pkgname-dev $pkgname-doc"
-source="https://freedesktop.org/software/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+source="https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"
 
-_builddir="$srcdir"/libevdev-$pkgver
-prepare() {
-	local i
-	cd "$_builddir"
-	for i in $source; do
-		case $i in
-		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
-		esac
-	done
-}
+builddir="$srcdir/$pkgname-$pkgver"
 
 build() {
-	cd "$_builddir"
+	cd "$builddir"
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
_at_@ -39,7 +28,7 @@ build() {
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	make DESTDIR="$pkgdir" install || return 1
 }
 
-- 
2.8.3
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sat Aug 27 2016 - 10:46:07 GMT