Mail archive
alpine-aports

[alpine-aports] [PATCH v2] testing/numlockx: new aport

From: Alex Raschi <raschi.alex_at_gmail.com>
Date: Tue, 4 Sep 2018 15:14:29 +0200

https://tracker.debian.org/pkg/numlockx
Enable NumLock in X11 sessions
---
Changes v1 -> v2:
 - align to scrot APKBUILD
 testing/numlockx/APKBUILD | 46 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 testing/numlockx/APKBUILD
diff --git a/testing/numlockx/APKBUILD b/testing/numlockx/APKBUILD
new file mode 100644
index 0000000000..773ed2a743
--- /dev/null
+++ b/testing/numlockx/APKBUILD
_at_@ -0,0 +1,46 @@
+# Maintainer: Alex Raschi <raschi.alex_at_gmail.com>
+pkgname=numlockx
+pkgver=1.2.7.1
+_opkgver=${pkgver%.*.*} # original version
+_dpkgver=${pkgver#*.*.} # debian sub version
+pkgrel=0
+pkgdesc="Enable NumLock in X11 sessions"
+url="https://tracker.debian.org/pkg/numlockx"
+arch="all"
+license="MIT"
+depends=""
+makedepends="libx11-dev libxtst-dev"
+options="!check" # no test suite
+source="http://ftp.debian.org/debian/pool/main/n/$pkgname/${pkgname}_$_opkgver.orig.tar.gz
+	http://ftp.debian.org/debian/pool/main/n/$pkgname/${pkgname}_$_opkgver-$_dpkgver.debian.tar.xz"
+builddir="$srcdir/$pkgname-$_opkgver"
+
+prepare() {
+	default_prepare
+	local patch=
+	local patches="$srcdir"/debian/patches
+
+	for patch in $(cat "$patches"/series); do
+		patch -p1 -d "$builddir" -i "$patches"/"$patch"
+	done
+}
+
+build() {
+	cd "$builddir"
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var
+	make
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="efaaa67e8b2723cb1e8461dde664f1f8e9b21f34edfe2e1135a6b756fa2843aed1a386f2f9d70bd62ddae9aedfeeff856a18da8b542f2cff440f93b38e5a853e  numlockx_1.2.orig.tar.gz
+e42a233881f0687d073d2a2c204ecb22f1216d3539888158623dc655bb4d85c17316d8f1ba51a86c50072e93e6ecdf33ce8c568b98b93344099ae78b32da26c7  numlockx_1.2-7.1.debian.tar.xz"
-- 
2.18.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Sep 04 2018 - 15:14:29 GMT