summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgatha Zeren2022-01-05 17:50:34 -0500
committerAgatha Zeren2022-01-05 17:50:34 -0500
commitc7bd4d8388ca080d25fda673637b9aede5bc1172 (patch)
tree71ff6b3100c512e0c8f9603e795655d2ef558a0b
downloadaur-c7bd4d8388ca080d25fda673637b9aede5bc1172.tar.gz
Create an initial PKGBUILD for v0.4.1
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD41
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b75fea3be40
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = tera-cli
+ pkgdesc = CLI to make one-off Tera templating easier
+ pkgver = 0.4.1
+ pkgrel = 1
+ url = https://github.com/guangie88/tera-cli
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ source = tera-cli-0.4.1.tar.gz::https://github.com/guangie88/tera-cli/archive/v0.4.1.tar.gz
+ sha256sums = 1214150a5a7ff65d087a2d385344caf09c98a34ca7bfb76c41b27e3dfa3150e8
+
+pkgname = tera-cli
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..52e2afc5661
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+tera-cli-*.tar.gz
+tera-cli-*.pkg.tar.zst \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b8ddb70081d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Agatha Zeren <agatha@zeren.com>
+
+pkgname=tera-cli
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="CLI to make one-off Tera templating easier"
+depends=()
+makedepends=('cargo')
+arch=('x86_64')
+url="https://github.com/guangie88/tera-cli"
+source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('1214150a5a7ff65d087a2d385344caf09c98a34ca7bfb76c41b27e3dfa3150e8')
+license=('MIT')
+
+
+prepare() {
+ cd $pkgname-$pkgver
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd $pkgname-$pkgver
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ cargo build --frozen --release --all-features
+}
+
+check() {
+ cd $pkgname-$pkgver
+ export RUSTUP_TOOLCHAIN=stable
+ cargo test --frozen --all-features
+}
+
+package() {
+ cd $pkgname-$pkgver
+ ls
+ install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/tera"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+