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-11 20:16:37 +00:00
|
|
|
pkgrel=1
|
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-11 20:16:37 +00:00
|
|
|
url="https://g.tylerm.dev/tylermurphy534/crab"
|
2022-11-09 05:51:47 +00:00
|
|
|
license=('GPL3')
|
2022-11-11 20:16:37 +00:00
|
|
|
makedepends=('cargo')
|
2022-11-09 22:04:28 +00:00
|
|
|
depends=('glibc' 'pam')
|
2022-11-11 20:16:37 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://f.tylerm.dev/source/$pkgname/$pkgname-$pkgver.tar.gz")
|
2022-11-09 03:07:02 +00:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
build() {
|
2022-11-11 20:16:37 +00:00
|
|
|
cd "$srcdir"
|
2022-11-09 05:51:47 +00:00
|
|
|
cargo build --release
|
2022-11-09 03:07:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-11-11 20:16:37 +00:00
|
|
|
cd "$srcdir"
|
2022-11-11 06:25:10 +00:00
|
|
|
install -D --mode=4755 --owner=root --group=root ./target/release/crab ${pkgdir}/usr/bin/crab
|
2022-11-11 20:16:37 +00:00
|
|
|
install -D --mode=600 --owner=root --group=root ./config/pam ${pkgdir}/etc/pam.d/crab
|
|
|
|
install -D --mode=644 --owner=root --group=root ./config/default ${pkgdir}/usr/share/crab/crab.conf
|
2022-11-09 03:07:02 +00:00
|
|
|
}
|