X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25]) by lists.alpinelinux.org (Postfix) with ESMTP id 90DDC5C577D for ; Fri, 12 Oct 2018 19:15:50 +0000 (GMT) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id 19BB39E1B9A; Fri, 12 Oct 2018 19:15:50 +0000 (GMT) Received: from ncopa-desktop.copa.dup.pw (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: alpine@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id 10CFB9E037C; Fri, 12 Oct 2018 19:15:48 +0000 (GMT) Date: Fri, 12 Oct 2018 21:15:44 +0200 From: Natanael Copa To: Drew DeVault Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] testing/apk-file: new aport Message-ID: <20181012211544.3694e997@ncopa-desktop.copa.dup.pw> In-Reply-To: <20171210001720.8222-1-sir@cmpwn.com> References: <20171210001720.8222-1-sir@cmpwn.com> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, I am trying to look over some old, unmerged patches. -nc On Sat, 9 Dec 2017 19:17:20 -0500 Drew DeVault wrote: > https://github.com/jessfraz/apk-file > Search apk packages via the command line. > --- > testing/apk-file/APKBUILD | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 testing/apk-file/APKBUILD > > diff --git a/testing/apk-file/APKBUILD b/testing/apk-file/APKBUILD > new file mode 100644 > index 0000000000..c077d891db > --- /dev/null > +++ b/testing/apk-file/APKBUILD > @@ -0,0 +1,26 @@ > +# Maintainer: Drew DeVault > +pkgname=apk-file > +pkgver=0.1.3 > +pkgrel=0 > +pkgdesc="Search apk packages via the command line." > +url="https://github.com/jessfraz/apk-file" > +arch="all" > +license="MIT" > +makedepends="go-tools" > +source="${pkgname}-${pkgver}.tar.gz::https://github.com/jessfraz/${pkgname}/archive/v${pkgver}.tar.gz" > +builddir="$srcdir/$pkgname-$pkgver" > +options="$options !check" > + > +build() { > + export GOPATH="$startdir" > + cd "$builddir" > + go get -d -v || return 1 This will pull in dependencies from current git and will create a different package from same APKBUILD in the future. I don't have a perfect answer to how to do reproducible builds with go. > + go build || return 1 > +} > + > +package() { > + cd "$builddir" > + install -Dm755 $pkgname-$pkgver "$pkgdir"/usr/bin/$pkgname > +} > + > +sha512sums="ff688ed064e961321ef984f7cbd2dd6013bbdd7485aa00303039857ce96e5fcda8979e8102f29a66951c377a8f71780218a023833f6eebdf901ffced0ded0d19 apk-file-0.1.3.tar.gz" --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---