summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkatsuki Rui2021-06-10 14:15:20 +0800
committerAkatsuki Rui2021-06-10 14:15:20 +0800
commit9932ec5e427d085d80c0fd3c0ca2e16fdaafecb5 (patch)
tree41904ce6b783cc8512452148ad85b44a1bfe689a
downloadaur-9932ec5e427d085d80c0fd3c0ca2e16fdaafecb5.tar.gz
0.1.3
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD27
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..48f62af8c26
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = dofi-manager
+ pkgdesc = A simple dotfile manager
+ pkgver = 0.1.3
+ pkgrel = 1
+ url = https://github.com/akiirui/dofi
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ makedepends = git
+ source = dofi-manager-0.1.3.tar.gz::https://github.com/akiirui/dofi/archive/v0.1.3.tar.gz
+ b2sums = 2a3a7c3470353225e779f47fa9ac71d47a0b55c54dcaf923117bd667021129501c1314f8c985c2b4d225b3af5c3dce7fc1cf614311184b2a7bfc650e00563409
+
+pkgname = dofi-manager
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..91cba08f49c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Akatsuki Rui <akiirui@outlook.com>
+
+_pkgname="dofi"
+pkgname="dofi-manager"
+pkgver=0.1.3
+pkgrel=1
+pkgdesc="A simple dotfile manager"
+arch=("x86_64")
+makedepends=("cargo" "git")
+url="https://github.com/akiirui/dofi"
+license=("MIT")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/akiirui/dofi/archive/v$pkgver.tar.gz")
+b2sums=('2a3a7c3470353225e779f47fa9ac71d47a0b55c54dcaf923117bd667021129501c1314f8c985c2b4d225b3af5c3dce7fc1cf614311184b2a7bfc650e00563409')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ cargo build --locked --release --target-dir target
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ install -Dm755 "target/release/dofi" "$pkgdir/usr/bin/dofi"
+ install -Dm644 "share/completions/fish" "${pkgdir}/usr/share/fish/vendor_completions.d/dofi.fish"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}