diff options
author | INhBQfUQO2eFzulN | 2021-09-18 22:13:00 +0300 |
---|---|---|
committer | INhBQfUQO2eFzulN | 2021-09-18 22:13:00 +0300 |
commit | 5be0841c65b22c0c4b618cd6758d13d168f0a8ea (patch) | |
tree | 1aace4f8dee530ec29b85de63093a766042bb598 | |
download | aur-5be0841c65b22c0c4b618cd6758d13d168f0a8ea.tar.gz |
Created new package
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..96d766055210 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = turengo + pkgdesc = CLI tool for turengo.com + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/mesuutt/turengo + arch = x86_64 + license = MIT + makedepends = go + source = https://github.com/mesuutt/turengo/archive/refs/tags/v1.0.0.tar.gz + sha256sums = b4e876e2de19131320d947db30815ec50b2911a79fe3c7777734761ad4edf868 + +pkgname = turengo diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eb7da78f1463 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +pkgname=turengo +pkgver=1.0.0 +pkgrel=1 +pkgdesc='CLI tool for turengo.com' +arch=('x86_64') +url="https://github.com/mesuutt/$pkgname" +license=('MIT') +makedepends=('go') +source=("$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('b4e876e2de19131320d947db30815ec50b2911a79fe3c7777734761ad4edf868') + +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 +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |