summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDevin Singh2021-03-23 07:07:46 -0500
committerDevin Singh2021-03-23 07:07:46 -0500
commit317df73082868e06b5087b0528536ed1858ee461 (patch)
treee8b2d8303aabc88240cf93a6f2aa0a84a60682d7 /PKGBUILD
downloadaur-317df73082868e06b5087b0528536ed1858ee461.tar.gz
initial commit; add pkgbuild and srcinfo
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..805fec53d3c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Devin Singh <drsingh2518@icloud.com>
+pkgname='bunnyfetch-git'
+_pkgname="bunnyfetch"
+pkgver=0.1.3.39.g22e2ab3
+pkgrel=1
+arch=('x86_64' 'i686')
+url="https://github.com/alacritty/alacritty"
+pkgdesc="Tiny system info fetch utility."
+license=('MIT')
+makedepends=('rust' 'cargo' 'git')
+depends=('gcc-libs')
+provides=('bunnyfetch')
+conflicts=('bunnyfetch')
+source=("$_pkgname::git+https://github.com/Luvella/Bunnyfetch.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ cargo build --release
+}
+
+check() {
+ cd $_pkgname
+ cargo test --release
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -Dm755 target/release/bunnyfetch "$pkgdir/usr/bin/bunnyfetch"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}