2022-11-09 03:07:02 +00:00
|
|
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
|
|
# then please put 'unknown'.
|
|
|
|
|
|
|
|
# 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
|
|
|
}
|