Mail archive
alpine-aports

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

From: Alex Raschi <raschi.alex_at_gmail.com>
Date: Wed, 8 Aug 2018 11:00:17 +0200

https://tracker.debian.org/pkg/numlockx
Enable NumLock in X11 sessions
---
 testing/numlockx/APKBUILD | 42 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 testing/numlockx/APKBUILD
diff --git a/testing/numlockx/APKBUILD b/testing/numlockx/APKBUILD
new file mode 100644
index 0000000000..f0431fa07e
--- /dev/null
+++ b/testing/numlockx/APKBUILD
_at_@ -0,0 +1,42 @@
+# Maintainer: Alex Raschi <raschi.alex_at_gmail.com>
+pkgname=numlockx
+pkgver=1.2
+_pkgver=7.1 # 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="https://salsa.debian.org/debian/numlockx/-/archive/debian/$pkgver-$_pkgver/$pkgname-debian-$pkgver-$_pkgver.tar.gz"
+builddir="$srcdir/$pkgname-debian-$pkgver-$_pkgver"
+
+prepare() {
+	default_prepare
+	local patch=
+
+	for patch in improve-help get-state; do
+		patch < debian/patches/"$patch".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="55cb3f334efb5de8d5f8b4b3d604f5f67aeeb3e3c6b9e2a3b1af99ada7aeb3d8440164628a8df68cd90fb66110669c586e7bf3809259ae4572446d5982159017  numlockx-debian-1.2-7.1.tar.gz"
-- 
2.18.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Aug 08 2018 - 11:00:17 UTC