Mail archive
alpine-aports

Re: [alpine-aports] [PATCH 1/2] testing/glock: new aport

From: Francesco Colista <fcolista_at_alpinelinux.org>
Date: Fri, 07 Aug 2015 10:25:03 +0200

Il 2015-08-07 00:21 Christian Kampka ha scritto:
> https://github.com/robfig/glock
>
> Glock is a command-line tool to lock dependencies to specific
> revisions,
> using a version control hook to keep those revisions in sync across a
> team.
> ---

> +snapshot() {
> + local _date=$(date +%Y%m%d)
> + local _ver=0.0.$_date
> + local _pkg=$pkgname-$_ver.tar.gz
> +
> + abuild clean
> + abuild deps
> + abuild fetch
> +
> + mkdir -p "$srcdir"
> + cd "$srcdir"
> + msg "Creating snapshot: $_pkg"
> + export GOPATH="${srcdir}/$pkgname"
> + git clone -q ${_giturl} || return 1
> + cd $pkgname
> + git checkout ${_commit} || return 1
> + go get -v -d || return 1
> + cd $srcdir
> + tar zcf $pkgname-$pkgver.tar.gz $pkgname || return 1
> + rsync --progress -La $pkgname-${_ver}.tar.gz \
> + $_disturl || return 1
> + cd $startdir
> + sed -i -e "s/^pkgver=.*/pkgver=$_ver/" APKBUILD || return 1
> + abuild checksum
> + abuild undeps
> +}
> +

Hi Christian.
Rather than implementing a snapshot() function, you can use the buildin
abuild snaphsot who proves to be reliable so far.
Please note: http://wiki.alpinelinux.org/wiki/Include:Abuild
This patch applies, but doesn't build because the .tar.gz upload on
dev.alpinelinux.org fails.
Thanks.

-- 
:: Francesco Colista
:: Alpine Linux Infrstraucture
:: http://www.alpinelinux.org
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Aug 07 2015 - 10:25:03 GMT