diff options
author | João Figueiredo | 2022-08-14 23:20:12 +0100 |
---|---|---|
committer | João Figueiredo | 2022-08-14 23:20:12 +0100 |
commit | ecba7e4ec4b283e14b37f8860a052087f0ee1eed (patch) | |
tree | aa35345f7773dd2004e962b4917c5923fca5634c | |
download | aur-ecba7e4ec4b283e14b37f8860a052087f0ee1eed.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6a2ef5d6ea36 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = pam_usb-git + pkgdesc = Hardware authentication for Linux using ordinary USB Flash Drives. + pkgver = 0.8.2_r500.g7a785de + pkgrel = 1 + url = https://github.com/mcdope/pam_usb + arch = x86_64 + license = GPLv2 + makedepends = git + depends = pam + depends = dbus + depends = python + depends = python-dbus + depends = python-lxml + depends = python-gobject + depends = udisks2 + options = !emptydirs + backup = etc/security/pam_usb.conf + source = git+https://github.com/mcdope/pam_usb + sha256sums = SKIP + +pkgname = pam_usb-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ca00336cede1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: João Figueiredo <islandc0der@chaotic.cx> +# Contributor: Pekka Helenius <fincer89 [at] hotmail [dot] com> + +pkgname=pam_usb-git +pkgver=0.8.2_r500.g7a785de +pkgrel=1 +pkgdesc='Hardware authentication for Linux using ordinary USB Flash Drives.' +arch=($CARCH) +url='https://github.com/mcdope/pam_usb' +license=(GPLv2) +depends=(pam dbus python python-dbus python-lxml python-gobject udisks2) +makedepends=(git) +options=(!emptydirs) +backup=(etc/security/pam_usb.conf) +source=("git+$url") +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname%-git} + _ver="$(grep -m1 'define PUSB_VERSION ' src/version.h | cut -d '"' -f2 | tr - .)" + echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" +} + +build() { + make -C ${pkgname%-git} +} + +package() { + make -C ${pkgname%-git} DESTDIR="$pkgdir" PAM_USB_DEST="$pkgdir/usr/lib/security" install + install -Dt ${pkgdir}/usr/lib/systemd/system -m0644 ${pkgname%-git}/arch_linux/pamusb-agent.service +} |