summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin Singh2021-03-23 07:07:46 -0500
committerDevin Singh2021-03-23 07:07:46 -0500
commit317df73082868e06b5087b0528536ed1858ee461 (patch)
treee8b2d8303aabc88240cf93a6f2aa0a84a60682d7
downloadaur-317df73082868e06b5087b0528536ed1858ee461.tar.gz
initial commit; add pkgbuild and srcinfo
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD36
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c5a08871cbe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = bunnyfetch-git
+ pkgdesc = Tiny system info fetch utility.
+ pkgver = 0.1.3.39.g22e2ab3
+ pkgrel = 1
+ url = https://github.com/alacritty/alacritty
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = rust
+ makedepends = cargo
+ makedepends = git
+ depends = gcc-libs
+ provides = bunnyfetch
+ conflicts = bunnyfetch
+ source = bunnyfetch::git+https://github.com/Luvella/Bunnyfetch.git
+ sha256sums = SKIP
+
+pkgname = bunnyfetch-git
+
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"
+}