blob: 4062aeff74eda796dda34ead5a6a3df6493fbda3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Vysakh Premkumar <vysakhpr218@gmail.com>
# Contributor: David Sherriff <d.sherriff.81@gmail.com>
pkgname=pooi
pkgver=1.0.0
pkgrel=1
pkgdesc="trivia on the commandline"
arch=('x86_64')
url="https://gitlab.com/tellmeY/pooi"
license=('GPL3')
depends=('rust' 'cargo')
source=("https://gitlab.com/tellmeY/$pkgname/-/archive/v$pkgver/pooi-v$pkgver.tar.gz")
sha256sums=('57ae830d1d7b3a59fb1f421736b17027b374b6758e21d69979a9cb7b3519a3a0')
build() {
cd "$srcdir/pooi-v$pkgver"
cargo build --release
}
package() {
cd "$srcdir/pooi-v$pkgver"
install -Dvm755 "./target/release/pooi" -t "$pkgdir/usr/local/bin"
install -Dvm644 ./etc/completions/_pooi $pkgdir/usr/share/zsh/site-functions/_pooi
install -Dvm644 ./etc/completions/pooi.bash $pkgdir/usr/share/bash-completion/completions/pooi
install -Dvm644 ./etc/completions/pooi.fish $pkgdir/usr/share/fish/vendor_completions.d/pooi.fish
# Install files into the package (e.g., make install)
}
|