crab/deployments/aur/PKGBUILD

24 lines
627 B
Text
Raw Normal View History

2022-11-09 03:07:02 +00:00
# Maintainer: Tyler Murphy <tylermurphy534@gmail.com>
pkgname=crab
2022-11-09 17:50:44 +00:00
pkgver=0.0.4
2022-11-09 03:07:02 +00:00
pkgrel=1
pkgdesc="A rusty permission authentication system"
2022-11-09 05:51:47 +00:00
arch=('x86_64' 'i686')
2022-11-09 03:07:02 +00:00
url="https://g.tylerm.dev/tylermurphy534/crab.git"
2022-11-09 05:51:47 +00:00
license=('GPL3')
makedepends=('cargo')
2022-11-09 03:07:02 +00:00
source=("git+$url")
md5sums=('SKIP')
build() {
2022-11-09 05:51:47 +00:00
cd crab
cargo build --release
2022-11-09 03:07:02 +00:00
}
package() {
2022-11-09 05:51:47 +00:00
cd crab
2022-11-09 03:07:02 +00:00
install -D --mode=6755 --owner=root --group=root ./target/release/crab ${pkgdir}/usr/bin/crab
install -D --mode=660 --owner=root --group=root pam ${pkgdir}/etc/pam.d/crab
2022-11-09 05:51:47 +00:00
install -D --mode=660 --owner=root --group=root conf ${pkgdir}/usr/share/crab/crab.conf
2022-11-09 03:07:02 +00:00
}