summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorWesley Moore2020-02-13 20:36:32 +1100
committerWesley Moore2020-02-13 20:36:32 +1100
commitd0c4e01e11603f78a8b2bd187cb80e7b843e008d (patch)
tree669538bd56ac1d5f143876171365dd03d49f6842 /PKGBUILD
downloadaur-d0c4e01e11603f78a8b2bd187cb80e7b843e008d.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..aeb499a5045
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Wesley Moore <wes@wezm.net>
+pkgname=git-trim
+pkgver=0.1.3
+pkgrel=1
+pkgdesc='Trims your git remote tracking branches'
+arch=('i686' 'x86_64')
+url="https://github.com/foriequal0/git-trim"
+license=('MIT')
+depends=('libgit2')
+conflicts=('git-trim-git')
+makedepends=('rust' 'cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('0625e7530df3b7caec25a7d107136b296398d6eb415404f98beb4045b22ff85e')
+
+build() {
+ cd "$pkgname-$pkgver"
+ LIBGIT2_SYS_USE_PKG_CONFIG=1 cargo build --release --locked
+}
+
+package() {
+ install -Dm755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ # License is MIT in Cargo.toml but no file present, issue has been raised
+ # install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+}