crab/deployments/aur/PKGBUILD

25 lines
657 B
Text
Raw Normal View History

2022-11-09 03:07:02 +00:00
# Maintainer: Tyler Murphy <tylermurphy534@gmail.com>
pkgname=crab
2022-11-11 06:25:10 +00:00
pkgver=0.0.6
2022-11-09 22:04:28 +00:00
pkgrel=2
2022-11-09 03:07:02 +00:00
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')
2022-11-09 22:04:28 +00:00
makedepends=('git' 'cargo')
depends=('glibc' 'pam')
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-11 06:25:10 +00:00
install -D --mode=4755 --owner=root --group=root ./target/release/crab ${pkgdir}/usr/bin/crab
install -D --mode=600 --owner=root --group=root pam ${pkgdir}/etc/pam.d/crab
install -D --mode=600 --owner=root --group=root conf ${pkgdir}/usr/share/crab/crab.conf
2022-11-09 03:07:02 +00:00
}