Mail archive
alpine-aports

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

From: Milan P. Stanić <mps_at_arvanta.net>
Date: Tue, 16 Oct 2018 13:46:34 +0200

On Mon, 2018-10-15 at 13:25, Leonardo Arena wrote:
> On Mon, Oct 15, 2018 at 12:49 PM Milan P. Stanić <mps_at_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_at_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_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Oct 16 2018 - 13:46:34 UTC