summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateen Ulhaq2019-05-17 01:36:03 -0700
committerMateen Ulhaq2019-05-17 01:36:03 -0700
commit5a58e65620c60c8dd1a8ac514bbe87550a3ed371 (patch)
treed41e595db3ebdbdd2e51a0d8681895eb6b2aeb5f
downloadaur-5a58e65620c60c8dd1a8ac514bbe87550a3ed371.tar.gz
Added frece-git
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD32
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..010c64c1037
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = frece-git
+ pkgdesc = Frecency sorted database
+ pkgver = 1.0.0.r1.g4d037d3
+ pkgrel = 1
+ url = https://github.com/SicariusNoctis/frece
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ makedepends = git
+ depends = gcc-libs
+ provides = frece
+ conflicts = frece
+ source = frece-git-1.0.0.r1.g4d037d3::git+https://github.com/SicariusNoctis/frece
+ sha256sums = SKIP
+
+pkgname = frece-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f741c0639dd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Mateen Ulhaq <mulhaq2005+aur at gmail dot com>
+
+pkgname=frece-git
+pkgver=1.0.0.r1.g4d037d3
+pkgrel=1
+pkgdesc="Frecency sorted database"
+arch=("x86_64")
+url="https://github.com/SicariusNoctis/frece"
+license=("MIT")
+depends=("gcc-libs")
+makedepends=("cargo" "git")
+provides=("frece")
+conflicts=("frece")
+source=("$pkgname-$pkgver::git+https://github.com/SicariusNoctis/frece")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "$pkgname-$pkgver"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm755 "target/release/frece" "$pkgdir/usr/bin/frece"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/frece/LICENSE"
+ install -Dm644 "README.md" "$pkgdir/usr/share/doc/frece/README.md"
+}