summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJack Johannesen2020-09-12 15:21:42 -0400
committerJack Johannesen2020-09-12 15:21:42 -0400
commit2111cd620ad330698880916a3e6b0ffd6fbf99d9 (patch)
treea74dc1848d71793e1b52871686535803ec0b5766 /PKGBUILD
parentf6884541a053ed87cb74e4981e4b578a4daef74c (diff)
downloadaur-2111cd620ad330698880916a3e6b0ffd6fbf99d9.tar.gz
Fix PKGBUILD to comply with packaging standards and add libxcb
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 7 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 90ec87accb43..bb5cb79a5915 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,12 @@
pkgname="freshfetch-git"
pkgver=0.1.1
-pkgrel=1
+pkgrel=2
pkgdesc="A fresh take on Neofetch"
arch=('any')
url="https://github.com/K4rakara/freshfetch"
license=('MIT')
-depends=('libcpuid' 'luajit')
+depends=('libcpuid' 'libxcb' 'luajit')
makedepends=('cargo' 'git')
provides=('freshfetch')
# I'll eventually make an AUR package called `freshfetch` that conflicts with
@@ -19,20 +19,13 @@ md5sums=('SKIP')
build() {
cd "$srcdir/freshfetch/";
- cargo build --release -vv;
+ cargo build \
+ --release \
+ --locked \
+ -vv;
}
package() {
- # Create the required directories.
- mkdir -p "$pkgdir/usr/bin/";
- cp \
- "$srcdir/freshfetch/target/release/freshfetch" \
- "$pkgdir/usr/bin/freshfetch";
- chown \
- root \
- "$pkgdir/usr/bin/freshfetch";
- chmod \
- 755 \
- "$pkgdir/usr/bin/freshfetch";
+ install -Dm 755 "$srcdir/${pkgname//-git}/target/release/${pkgname//-git}" -t "$pkgdir/usr/bin";
}