Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id DC310781D45 for <~alpine/aports@lists.alpinelinux.org>; Sat, 30 May 2020 14:51:49 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 00D3782C; Sat, 30 May 2020 10:51:44 -0400 (EDT) Received: from imap10 ([10.202.2.60]) by compute3.internal (MEProxy); Sat, 30 May 2020 10:51:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=milesalan.com; h=mime-version:message-id:in-reply-to:references:date:from:to :cc:subject:content-type; s=fm3; bh=AGTljVRPxC4a5NEUpcuvSixc7oA7 vlInIDll84gTUVw=; b=N+c5FdeNaSNXL4EUokizJ+RiwIeMDrZ+VAJHnxd1BhRJ Yi/NkEXMKeKIlck2dVuS0TLw0nH2+D+iuq1+QXonH0iCO86Pui/naMhnIDvDhkxH Uz6ssrNIXZtQQuOztHz3mjCw1vAsRT/TpFxDDG4TuM20wBp64SECb3qSpqQ/DoH0 StmUpqXZUuGaTvm42o/MXl4QBm2WguxshAowiVPwNSZzW1PCx1xEJLs0ZBe/d0TX M5Rg8v3HBzl1udJvTNTyN2cfEZRDqUqABN4E2iff31VmwcYLT0Y3s6cn+TqNCvpV psZ5AseRL9va3pwG65v4FLXV4bHSidswXIZpOJbHCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=AGTljV RPxC4a5NEUpcuvSixc7oA7vlInIDll84gTUVw=; b=rjQDNQUnbaUyLE1ixzHVxI 5bGHdwe3z5l5eS5kRfmpUYdDiBtiR4UX6CtyHMUfkxvlaRGJpJxHv6EhYuv2CUPH UMyQzYGW2bqqHpzE0+A43s7KLjs0K8C5Ow+8wyP8/Iwlxwa6KldUT8bVtuh3+qQK guB753tzL1ABvC665+My5PHd+uMKIunh+tj+lvDlnHvSNpJ8z+BknDtYUwMyB68Z 4v/5Y4XNmoZ8WYaeGivPkAp2TFCWn8GEvO70BBNE9p7vs3wAE6/j3xfieh9CmQ7I 63/6EEMj0A9lruAMyxfcESAa6WkW2AoLig08oIeN9a26kcCIdSVFPsEwX3TE0/7g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeftddgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfoihhl vghsucetlhgrnhdfuceomhesmhhilhgvshgrlhgrnhdrtghomheqnecuggftrfgrthhtvg hrnhepueffkeejiefhfffhjeevtedtfeelfeefieeujedvgeeljefgudfhledtveekveek necuffhomhgrihhnpegrlhhpihhnvghlihhnuhigrdhorhhgpdhgihhthhhusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsehm ihhlvghsrghlrghnrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 503492005F; Sat, 30 May 2020 10:51:44 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-dev0-504-g204cd6f-fm-20200527.002-g204cd6f2 Mime-Version: 1.0 Message-Id: <9aecb18b-c0f5-422d-89b4-bc156b654863@www.fastmail.com> In-Reply-To: <20200530081121.83fb92a61b46617ca6284934@gmail.com> References: <20200530021355.20187-1-m@milesalan.com> <20200530081121.83fb92a61b46617ca6284934@gmail.com> Date: Sat, 30 May 2020 09:51:24 -0500 From: "Miles Alan" To: "Konstantin Kulikov" Cc: ~alpine/aports@lists.alpinelinux.org Subject: Re: [PATCH] testing/lf: new aport Content-Type: text/plain On Sat, May 30, 2020, at 12:11 AM, Konstantin Kulikov wrote: > Many devs ignore aports ML, consider sending merge request at > https://gitlab.alpinelinux.org/alpine/aports > > Review comments inline below. > > > https://github.com/gokcehan/lf > > Terminal filemanager written in Go with vim-style keybindings > > --- > > testing/lf/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ > > 1 file changed, 36 insertions(+) > > create mode 100644 testing/lf/APKBUILD > > > > diff --git a/testing/lf/APKBUILD b/testing/lf/APKBUILD > > new file mode 100644 > > index 00000000..f79c70ae > > --- /dev/null > > +++ b/testing/lf/APKBUILD > > @@ -0,0 +1,36 @@ > > +# Maintainer: Miles Alan > > +pkgname=lf > > +pkgver=14 > > +pkgrel=0 > > +pkgdesc="Terminal filemanager written in Go with vim-style keybindings" > > +url="https://github.com/gokcehan/lf" > > +arch="all" > > +license="MIT" > > +makedepends="go" > > +subpackages="$pkgname-doc" > > +source="$pkgname-$pkgver.tar.gz::https://github.com/gokcehan/lf/archive/r$pkgver.tar.gz" > > +builddir="$srcdir/src/github.com/gokcehan/$pkgname" > > builddir is unneccesary with go modules. > > > +options="chmod-clean" > > Add "net" to options as well. This may become a requirement in future. > > Also export a few variables so go doesn't put stuff in /home or /tmp like this: > > export GOPATH="$srcdir/go" > export GOCACHE="$srcdir/go-build" > export GOTMPDIR="$srcdir" > > > + > > +prepare() { > > + mkdir -p ${builddir%/*} > > + mv $srcdir/$pkgname-r$pkgver "$builddir"/ > > + default_prepare > > + go mod vendor > > +} > > If you vendor stuff you need to also pass -mod=vendor to "go build" and > "go test", > because alpine is still on go1.13. > remove prepare() function and vendoring completely instead, it is > unneccesary here. > > > + > > +build() { > > + go build -v -o bin/$pkgname > > +} > > + > > +check() { > > + go test > > Prefer "go test ./..." just in case upstream adds more packages to repo > in future. > > > +} > > + > > +package() { > > + install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname > > + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE > > Do not install license file, unless package uses "license=custom". > > > + install -Dm644 lf.1 "$pkgdir"/usr/share/man/man1/lf.1 > > +} > > + > > +sha512sums="cd2e268d551a0a83a32563424675455288e09b28d60940143eff4d24cf5b98ad0d7bd9ab100ea5a456e37460c318001ad5b444d252a986e9ddcfff274adf7720 lf-14.tar.gz" > > -- > > 2.26.2 > Thanks for the feedback - will address and reopen as MR on gitlab.