Autogenerated commit at 2024-09-18 11:01:02.002720+00:00

This commit is contained in:
ahriman 2024-09-18 11:01:02 +00:00
parent dc203a9464
commit b5a54025f8
2 changed files with 54 additions and 0 deletions

15
scc/.SRCINFO Normal file
View File

@ -0,0 +1,15 @@
pkgbase = scc
pkgdesc = Sloc, Cloc and Code: a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
pkgver = 3.3.5
pkgrel = 1
url = https://github.com/boyter/scc
arch = x86_64
arch = i386
license = MIT
license = Unlicense
makedepends = go
depends = glibc
source = scc-3.3.5::https://github.com/boyter/scc/archive/v3.3.5.tar.gz
sha256sums = 028869a7d053879a8e3f2872fdd792f165db13696918d08863475c638f08ef06
pkgname = scc

39
scc/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
# Maintainer: Ilaï Deutel <PlMWPh1WSmypRv0JQljz> (echo ... | tr 'A-Za-z' 'l-za-kL-ZA-K' | base64 -d)
pkgname=scc
pkgver=3.3.5
pkgrel=1
pkgdesc='Sloc, Cloc and Code: a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go'
arch=('x86_64' 'i386')
url="https://github.com/boyter/scc"
license=('MIT' 'Unlicense')
depends=('glibc')
makedepends=('go')
source=("$pkgname-$pkgver::https://github.com/boyter/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('028869a7d053879a8e3f2872fdd792f165db13696918d08863475c638f08ef06')
prepare(){
cd "$pkgname-$pkgver"
mkdir -p build/
}
build() {
cd "$pkgname-$pkgver"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o build ./...
}
check() {
cd "$pkgname-$pkgver"
go test ./...
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 build/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}