Subject: [alpine-aports] [PATCH] testing/xcape: new aport

From: Milan P. Stanić <[email-masked]>
Date: Wed, 3 Oct 2018 18:53:21 +0200

https://github.com/alols/xcape
use a modifier key as another key when pressed and released on its own
---
 testing/xcape/APKBUILD | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 testing/xcape/APKBUILD

diff --git a/testing/xcape/APKBUILD b/testing/xcape/APKBUILD
new file mode 100644
index 0000000000..8770506b59
--- /dev/null
+++ b/testing/xcape/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Milan P. Stanić <[email-masked]>
+# Maintainer: Milan P. Stanić <[email-masked]>
+pkgname=xcape
+pkgver=1.2
+pkgrel=0
+pkgdesc="use a modifier key as another key"
+url="https://github.com/alols/xcape"
+arch="all"
+license="GPL-3.0-only"
+depends=""
+makedepends="libx11-dev libxtst-dev libxi-dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://github.com/alols/xcape/archive/v1.2.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	make
+}
+
+check() {
+	cd "$builddir"
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" MANDIR=$PREFIX/share/man/man1 install
+}
+
+sha512sums="5ae8502250a9ec55a4b0c5f7301c1597c652b76904261153b720362e3c5882e8db980c85396a2594f99ae2fb72ab7070c1b06c9432d54b7da84975ff45b25a79  v1.2.tar.gz"
-- 
2.18.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Leonardo Arena <[email-masked]>
Date: Mon, 15 Oct 2018 11:03:26 +0200

Hi,

>  create mode 100644 testing/xcape/APKBUILD
didn't you get this error while building?

(edge-x86_64) ~/aports/testing/xcape$ abuild -r
>>> xcape: Building testing/xcape 1.2-r0 (using abuild 3.3.0_pre1-r0)
>>> xcape: Checking sanity of /home/larena/aports/testing/xcape/APKBUILD...
>>> ERROR: xcape: source v1.2.tar.gz needs to be renamed to avoid possible
collisions

Thanks

/eo

---

From: Milan P. Stanić <[email-masked]>
Date: Mon, 15 Oct 2018 12:49:00 +0200

> >>> ERROR: xcape: source v1.2.tar.gz needs to be renamed to avoid possible

Yes, but with 'abuild build' build is clean, no errors or warnings.

What should be done? Change source url to something like:
source="https://github.com/alols/xcape/archive/v${pkgver}.tar.gz"
what I tried, but error is still same.

Upstream named archive v1.2.tar.gz and I don't have idea how to solve
'abuild -r' problem.
Anyone can help/explain to me what should I do with this problem.

-- 
regards

---

---

From: Leonardo Arena <[email-masked]>
Date: Mon, 15 Oct 2018 13:25:13 +0200

On Mon, Oct 15, 2018 at 12:49 PM Milan P. Stanić <[email-masked]> wrote:

> > >>> xcape: Checking sanity of
> /home/larena/aports/testing/xcape/APKBUILD...

You should use:

source="$pkgname-$pkgver.tar.gz::
https://github.com/alols/xcape/archive/v${pkgver}.tar.gz"

Anything before "::" will be the filename the source with be saved with.

Thanks!

/eo

---

From: Milan P. Stanić <[email-masked]>
Date: Tue, 16 Oct 2018 13:46:34 +0200

> Anything before "::" will be the filename the source with be saved with.

I changed source in APKBUILD  to:
source="$pkgname-$pkgver.tar.gz::https://github.com/alols/xcape/archive/v$pkgver.tar.gz"

Now it creates src with the files (ls -l src) 
xcape-1.2
xcape-1.2.tar.gz -> /var/cache/distfiles/xcape-1.2.tar.gz

Is that ok?

BTW, still I have problem with 'abuild -r' which gives me:
>>> xcape: abuild 3.2.0-r0
>>> xcape: Checking sanity of /home/mps/aports/testing/xcape/APKBUILD...
>>> xcape: Analyzing dependencies...
>>> ERROR: xcape: all failed
>>> xcape: Uninstalling dependencies...

But that looks like it is because some conflict with installed packages,
and I don't have isolated build system from my work machine.

-- 
regards

---

---

From: Milan P. Stanić <[email-masked]>
Date: Fri, 26 Oct 2018 16:39:43 +0200

Leonardo, sorry for late answer, it took time to fix elfutils-dev error.

> and I don't have isolated build system from my work machine.

'abuild -r' now works without problem, have to remove elfutils-dev.
Leonardo, should I post new aports request or you can simply push
already posted?

-- 
regards

---