summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Aaron Goldberg2020-11-17 08:28:44 -0500
committerBen Aaron Goldberg2020-11-17 08:28:44 -0500
commit7e0c42f0ac27bafcfcce695fc7b39c0940b00925 (patch)
tree8f72e597ce9a7237b2636cbedb13918d0e55bf28
downloadaur-7e0c42f0ac27bafcfcce695fc7b39c0940b00925.tar.gz
Initial release
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD29
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..51887ac6f29
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = fre
+ pkgdesc = CLI tool for tracking your most-used directories and files
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = https://github.com/camdencheek/fre
+ arch = x86_64
+ arch = i686
+ arch = arm
+ arch = armv7h
+ arch = aarch64
+ license = MIT
+ makedepends = rust
+ makedepends = cargo
+ depends = gcc-libs
+ source = https://github.com/camdencheek/fre/archive/v0.2.0.tar.gz
+ sha256sums = fdca3786e35ced6b5709daaf987cad7a2776cc4aaf0d947b2f4185dc3384b5de
+
+pkgname = fre
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d2fb176d767
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Ben Aaron Goldberg <ben@benaaron.dev>
+
+pkgname=fre
+pkgver=0.2.0
+pkgrel=1
+pkgdesc="CLI tool for tracking your most-used directories and files"
+arch=('x86_64' 'i686' 'arm' 'armv7h' 'aarch64')
+url="https://github.com/camdencheek/fre"
+license=('MIT')
+source=("https://github.com/camdencheek/fre/archive/v${pkgver}.tar.gz")
+depends=('gcc-libs')
+makedepends=('rust' 'cargo')
+sha256sums=("fdca3786e35ced6b5709daaf987cad7a2776cc4aaf0d947b2f4185dc3384b5de")
+
+build() {
+ tar -xf v${pkgver}.tar.gz
+ cd "$srcdir/$pkgname-$pkgver"
+ cargo build --release
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ cargo test
+}
+
+package() {
+ install -D -m755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -D -m644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}