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ć <mps@arvanta.net>+# Maintainer: Milan P. Stanić <mps@arvanta.net>+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: alpine-aports+unsubscribe@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---
Hi,
On Wed, Oct 3, 2018 at 6:54 PM Milan P. Stanić <mps@arvanta.net> wrote:
> 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>>
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
On Mon, 2018-10-15 at 11:03, Leonardo Arena wrote:
> On Wed, Oct 3, 2018 at 6:54 PM Milan P. Stanić <mps@arvanta.net> wrote:> > 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> >> >> 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
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
---
Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---
On Mon, Oct 15, 2018 at 12:49 PM Milan P. Stanić <mps@arvanta.net> wrote:
> On Mon, 2018-10-15 at 11:03, Leonardo Arena wrote:> > On Wed, Oct 3, 2018 at 6:54 PM Milan P. Stanić <mps@arvanta.net> wrote:> > > 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> > >> > >> > 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>> 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.>>
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
On Mon, 2018-10-15 at 13:25, Leonardo Arena wrote:
> On Mon, Oct 15, 2018 at 12:49 PM Milan P. Stanić <mps@arvanta.net> wrote:> > > On Mon, 2018-10-15 at 11:03, Leonardo Arena wrote:> > > On Wed, Oct 3, 2018 at 6:54 PM Milan P. Stanić <mps@arvanta.net> wrote:> > > > 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> > > 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> > 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.> 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.
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
---
Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---
Leonardo, sorry for late answer, it took time to fix elfutils-dev error.
On Tue, 2018-10-16 at 13:46, Milan P. Stanić wrote:
> On Mon, 2018-10-15 at 13:25, Leonardo Arena wrote:> > On Mon, Oct 15, 2018 at 12:49 PM Milan P. Stanić <mps@arvanta.net> wrote:> > > > > On Mon, 2018-10-15 at 11:03, Leonardo Arena wrote:> > > > On Wed, Oct 3, 2018 at 6:54 PM Milan P. Stanić <mps@arvanta.net> wrote:> > > > > 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> > > > 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> > > 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.> > 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.> > 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.
'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
---
Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---