summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWesley Moore2020-02-13 20:36:32 +1100
committerWesley Moore2020-02-13 20:36:32 +1100
commitd0c4e01e11603f78a8b2bd187cb80e7b843e008d (patch)
tree669538bd56ac1d5f143876171365dd03d49f6842
downloadaur-d0c4e01e11603f78a8b2bd187cb80e7b843e008d.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD24
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7d34764db35
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = git-trim
+ pkgdesc = Trims your git remote tracking branches
+ pkgver = 0.1.3
+ pkgrel = 1
+ url = https://github.com/foriequal0/git-trim
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = rust
+ makedepends = cargo
+ depends = libgit2
+ conflicts = git-trim-git
+ source = git-trim-0.1.3.tar.gz::https://github.com/foriequal0/git-trim/archive/v0.1.3.tar.gz
+ sha256sums = 0625e7530df3b7caec25a7d107136b296398d6eb415404f98beb4045b22ff85e
+
+pkgname = git-trim
+
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"
+}