aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-09 21:15:41 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-10 03:26:34 +0000
commit9f6381a08068034971dc4750779ffd817dc7ecfe (patch)
treeb81bf70d060bfcdd1712e7baf2725e3f9b399ef6
parent1a4bfc73312c57036a3f012709d7fc955cc07fed (diff)
downloadaports-9f6381a08068034971dc4750779ffd817dc7ecfe.tar.gz
aports-9f6381a08068034971dc4750779ffd817dc7ecfe.tar.bz2
aports-9f6381a08068034971dc4750779ffd817dc7ecfe.tar.xz
main/mtdev: modernise, add check
-rw-r--r--main/mtdev/APKBUILD32
1 files changed, 14 insertions, 18 deletions
diff --git a/main/mtdev/APKBUILD b/main/mtdev/APKBUILD
index c901776c6f..42eb16df8b 100644
--- a/main/mtdev/APKBUILD
+++ b/main/mtdev/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mtdev
pkgver=1.1.5
-pkgrel=1
+pkgrel=2
pkgdesc="Multitouch Protocol Translation Library Development Package"
url="http://bitmath.org/code/mtdev/"
arch="all"
@@ -14,20 +14,14 @@ install=""
subpackages="$pkgname-dev"
source="http://bitmath.org/code/mtdev/mtdev-$pkgver.tar.gz"
-_builddir="$srcdir"/mtdev-$pkgver
prepare() {
- local i
- cd "$_builddir"
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,14 +29,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
dev() {
@@ -50,6 +48,4 @@ dev() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
-md5sums="7fdbc6d16cf6fcc2c5c4537f84141cf8 mtdev-1.1.5.tar.gz"
-sha256sums="a662924dd09cf538c8df66514da345e40c3cbfa880cc7262bc3b55ee46d0c1f4 mtdev-1.1.5.tar.gz"
sha512sums="f59f8cda9b81e17253ff2da93a14b6f8e48361aff890dd5d1bb89ca385d713c212f961ed34fc5b866affd83013530a036736faca071ec9a424091979a12c9208 mtdev-1.1.5.tar.gz"