Received: from theta.ikke.info (theta.ikke.info [178.21.117.236]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 057422224A0 for <~alpine/aports@lists.alpinelinux.org>; Sun, 26 Mar 2023 16:04:42 +0000 (UTC) Received: from 60102fbddae7 (mutt_mutt_run_c6dbda539ceb.postfix_default [192.168.80.4]) by theta.ikke.info (Postfix) with ESMTPS id B819014089F; Sun, 26 Mar 2023 16:04:46 +0000 (UTC) Date: Sun, 26 Mar 2023 16:04:46 +0000 From: Kevin Daudt To: KAAtheWise Cc: "~alpine/aports@lists.alpinelinux.org" <~alpine/aports@lists.alpinelinux.org> Subject: Re: [PATCH] testing/scc: new aport Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Mar 26, 2023 at 03:33:46PM +0000, KAAtheWise wrote: > A port for the SCC SLOC/CLOC counter. > --- > testing/scc/APKBUILD | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 testing/scc/APKBUILD > > diff --git a/testing/scc/APKBUILD b/testing/scc/APKBUILD > new file mode 100644 > index 00000000000..a7a313f954c > --- /dev/null > +++ b/testing/scc/APKBUILD > @@ -0,0 +1,29 @@ > +# Contributor: KAA the Wise > +# Maintainer: KAA the Wise > +pkgname=scc > +pkgver=3.1.0 > +pkgrel=0 > +pkgdesc="A very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go" > +url="https://github.com/boyter/scc" > +arch="all" > +license="MIT" > +makedepends="go" > +options="!check" # no test files present > +source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" > + > +export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" > +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" > +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" > +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" > + > +build() { > + go build -v -o bin/"$pkgname" > +} > + > +package() { > + install -Dm0755 bin/"$pkgname" -t "$pkgdir"/usr/bin > +} > + > +sha512sums=" > +ecf47ae92806c2e4c696b99d7b5ef4f24527708c9e8d452d0341c00bd93ed7523f165e429b38c1a269f168793aabf95291e43b4f9a1dc8c5a79127fd5fe16721 scc-3.1.0.tar.gz > +" > -- > 2.38.4 > Created a merge request for this: https://lists.alpinelinux.org/~alpine/aports/patches/4163