Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 185D6782B70 for <~alpine/aports@lists.alpinelinux.org>; Sat, 30 May 2020 05:11:25 +0000 (UTC) Received: by mail-lj1-f194.google.com with SMTP id m18so1805041ljo.5 for <~alpine/aports@lists.alpinelinux.org>; Fri, 29 May 2020 22:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CGdS4DaIcN6hOCIOxYWYt5UEIkGMXz3D84nmKRd+398=; b=CWOtSV4EYaZ+TmgHga5IhIdWMP5YhJszWxMs4Ym2gDaHnsCC27If8e0xoRA8cvMxry h2n8tYpIy2aJAnoxM8sp6S81be+628LEfeMb3rHS+BT9NCsSydnqKm795guxUCMFJ1JQ Sfk57YCuQjN1HT7Ysieu1e3/j3MV6etCpqPyCIjjgfL1PhwQVifLDnc46fNS6TR3mBlg Ig6ahlqJdxqF6oGlnKpaHgZrMtOoN75hwebcf4Z/4+vRDKGwyGj0UA3tAotDwJKz1gjD 559UWTP0xXTLOANLI5vNBHB5dA58d9lfY3DsA75WSnGN+Ni+KPIDCnkKxntd6NyMsg2M GObw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CGdS4DaIcN6hOCIOxYWYt5UEIkGMXz3D84nmKRd+398=; b=Pipi32hdswx0Z3DYFbVkufaEur6zLE3wQJqzA8aE/MHJ8CnpEmaAxZbHmbTkwOArjG Q2+dHoi6ge4W5P2+fbat5w4hjXZxjcE6IGCGSUiAfUy6TKn+TDbHRZAIbkWTaewp858/ Ii4yAHgbdUFmO/30rE8J6+0qxDbYnHKtjdyvP7br9ReIoJTHMnm1ZDZQ0Aeb+Y17SlRE nDjegGO9VfGdHBnXpatB+42DcQYwhC0lcN3FGRk1dPvzI5P0PLt6m1iv/zjjWbsvyawZ 7SW8rPOa6Ur67MLln6qI80zNwsMzXkfipuNtD8k9nZju+8YhsQg87MVahHHIGOz5nhfW yjow== X-Gm-Message-State: AOAM532IeDEP/HIeewGFsb5O7v4pec57SKhhXvH0/c9yWbF3WlxrIhj9 2Fd5ylB97gCgumaiMCgVWC5S+Vik X-Google-Smtp-Source: ABdhPJyPQBFgmLTdYEnE0OQxBmrejxJ1HDn8+0vNoGAN6Cq15wG5iuf8FKBvw11fORJEdM2drhEdNg== X-Received: by 2002:a2e:b0ce:: with SMTP id g14mr1708581ljl.49.1590815483609; Fri, 29 May 2020 22:11:23 -0700 (PDT) Received: from kpc.kaey.ru ([91.123.18.165]) by smtp.gmail.com with ESMTPSA id x3sm2386351lji.110.2020.05.29.22.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 22:11:22 -0700 (PDT) Date: Sat, 30 May 2020 08:11:21 +0300 From: Konstantin Kulikov To: Miles Alan Cc: ~alpine/aports@lists.alpinelinux.org Subject: Re: [PATCH] testing/lf: new aport Message-Id: <20200530081121.83fb92a61b46617ca6284934@gmail.com> In-Reply-To: <20200530021355.20187-1-m@milesalan.com> References: <20200530021355.20187-1-m@milesalan.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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