aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-17 01:59:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:51:28 +0000
commitf7ac50c60c44af525fe97e81bee770506483cf99 (patch)
treefaf9f3669cdfb22bdafbe65789a2f1b217653ef8
parent89181803432a956fd2e673efcc2e83bb28277614 (diff)
downloadaports-f7ac50c60c44af525fe97e81bee770506483cf99.tar.gz
aports-f7ac50c60c44af525fe97e81bee770506483cf99.tar.bz2
aports-f7ac50c60c44af525fe97e81bee770506483cf99.tar.xz
main/inputproto: require util-macros for building
-rw-r--r--main/inputproto/APKBUILD26
1 files changed, 12 insertions, 14 deletions
diff --git a/main/inputproto/APKBUILD b/main/inputproto/APKBUILD
index d749225051..f9b8862132 100644
--- a/main/inputproto/APKBUILD
+++ b/main/inputproto/APKBUILD
@@ -1,35 +1,33 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=inputproto
pkgver=2.3.2
-pkgrel=0
+pkgrel=1
pkgdesc="X11 Input extension wire protocol"
url="http://xorg.freedesktop.org/"
arch="noarch"
license="MIT"
+makedepends="util-macros"
source="http://www.x.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- cd "$_builddir"
-}
-
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-md5sums="b290a463af7def483e6e190de460f31a inputproto-2.3.2.tar.bz2"
-sha256sums="893a6af55733262058a27b38eeb1edc733669f01d404e8581b167f03c03ef31d inputproto-2.3.2.tar.bz2"
sha512sums="23d41e9ff4f49d80cd00a436e6dbae09adb7b72d3a3d7909c340b4b132b5908b32a497d5e2ec2c994cf0598a788c0481270bf36ce95171c0be4f74b52715fedd inputproto-2.3.2.tar.bz2"