summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorathaller2021-06-01 19:51:50 +0200
committerathaller2021-06-01 19:54:43 +0200
commit2501e823e4e6aca911fb05529b5dbe0c740cb142 (patch)
tree462ac3a4de2d8b05fc10fb9dd58574bcc6970851
downloadaur-2501e823e4e6aca911fb05529b5dbe0c740cb142.tar.gz
Version 1.0.0
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD27
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..78a43270c68
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = histdb-rs
+ pkgdesc = Better history management for zsh.
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://github.com/AlexanderThaller/histdb-rs
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ depends = sqlite
+ provides = histdb-rs
+ source = histdb-rs::git+https://github.com/AlexanderThaller/histdb-rs
+ sha1sums = SKIP
+
+pkgname = histdb-rs
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6803c4cdd8b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Alexander Thaller <aur.archlinux.org+histdb-rs@alexander.thaller.ws>
+pkgname=histdb-rs
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Better history management for zsh."
+arch=('x86_64')
+url="https://github.com/AlexanderThaller/histdb-rs"
+license=('MIT')
+depends=('sqlite')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/AlexanderThaller/$pkgname/archive/$pkgver.tar.gz")
+sha512sums=('34ce7ff72382db694187e4f0d6141f524a15c6cbd4ce8e23a5a94d7b5ae66273aacf792cefd367fccacfecd0f85167ab1a05251fadbf56ec696b606e2886d58b')
+
+build() {
+ cd "$pkgname-$pkgver"
+ RUSTUP_TOOLCHAIN=stable cargo build --release --locked --all-features --target-dir=target
+}
+
+ check() {
+ cd "$pkgname-$pkgver"
+ RUSTUP_TOOLCHAIN=stable cargo test --release --locked --target-dir=target
+ }
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
+}