aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-09 01:32:39 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:54:40 +0000
commitbaac496bf3ef2806fb0cb211fea26843d9f7da87 (patch)
tree5fccb4de9d2e67667e2c2617989b2ce033de709b
parent5c3c17fe5757629c99ce84c4f5d408fcc3d84f70 (diff)
downloadaports-baac496bf3ef2806fb0cb211fea26843d9f7da87.tar.gz
aports-baac496bf3ef2806fb0cb211fea26843d9f7da87.tar.bz2
aports-baac496bf3ef2806fb0cb211fea26843d9f7da87.tar.xz
main/xmodmap: modernise, fix deps, mark no test
-rw-r--r--main/xmodmap/APKBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/main/xmodmap/APKBUILD b/main/xmodmap/APKBUILD
index 529d7847cd..3c07cb5316 100644
--- a/main/xmodmap/APKBUILD
+++ b/main/xmodmap/APKBUILD
@@ -2,35 +2,32 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xmodmap
pkgver=1.0.9
-pkgrel=1
+pkgrel=2
pkgdesc="utility for modifying keymaps and pointer button mappings in X"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
+options="!check" # No test suite.
depends=""
-depends_dev=""
-makedepends="libx11-dev"
-install=""
+makedepends="libx11-dev util-macros"
subpackages="$pkgname-doc"
source="http://www.x.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
-_builddir="$srcdir"/$pkgname-$pkgver
build () {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}