blob: 15c49047f427c045e06f8e8afeffea59d68a694a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
_pkgname=proji
pkgname=${_pkgname}
pkgver=0.19.2
pkgrel=1
pkgdesc="A powerful cross-platform CLI project templating tool"
arch=("x86_64")
url="https://github.com/nikoksr/proji"
license=("custom:MIT")
depends=("glibc")
makedepends=("go-pie" "golang-golang-x-sys" "golang-golang-x-text" "golang-github-stretchr-testify" "git")
install="${pkgname}.install"
source=("${_pkgname}::git+https://github.com/nikoksr/proji.git#tag=v${pkgver}")
sha512sums=('SKIP')
prepare() {
cd "$srcdir/$_pkgname"
go get -v -t -d ./...
}
build() {
cd "$srcdir/$_pkgname"
go build \
-trimpath \
-gcflags "all=-trimpath=${PWD}" \
-asmflags "all=-trimpath=${PWD}" \
-ldflags "-s -w -extldflags ${LDFLAGS}" \
./cmd/proji
}
package() {
cd "$srcdir/$_pkgname"
install -Dm755 "proji" "${pkgdir}/usr/bin/proji"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}
|