diff options
author | Cody P Schafer | 2023-11-24 22:01:56 -0500 |
---|---|---|
committer | Cody P Schafer | 2023-11-24 22:01:56 -0500 |
commit | 3e7f7b04919eddfc462b4d752de8a187d11c2d01 (patch) | |
tree | 26b1f0100e493f2aa1f2c6f2a1812f2cc6c79a9a /PKGBUILD | |
parent | 087acc53747d05cff834945c28f719478ea38da1 (diff) | |
download | aur-3e7f7b04919eddfc462b4d752de8a187d11c2d01.tar.gz |
update with pkgbuild from https://aur.archlinux.org/account/m3thodic
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -2,8 +2,7 @@ # Contributor: delta48 <dark.magician.48+aur[at]gmail[dot]com> pkgname=pixiewps-git -_pkgname=pixiewps -pkgver=r26.08a78c3 +pkgver=1.4.2.r6.g464326f pkgrel=1 pkgdesc="Offline bruteforce of the WPS pin exploiting the low or non-existing entropy of some APs" arch=('i686' 'x86_64') @@ -13,22 +12,23 @@ depends=('openssl') makedepends=('git') conflicts=('pixiewps') provides=('pixiewps') -source=(git+https://github.com/wiire/pixiewps.git) -md5sums=('SKIP') +source=("${pkgname}::git+https://github.com/wiire/pixiewps.git") +sha256sums=('SKIP') pkgver() { - cd "$_pkgname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "${srcdir}/${pkgname}" + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g' } build() { - cd "$_pkgname"/src/ - # edit makefile - sed -e 14d -e 16d -e '15 s/install/& -Dm 755 /' -i Makefile - make + cd "${srcdir}/${pkgname}" + + make } package() { - cd "$_pkgname"/src - make PREFIX="$pkgdir/usr" install + cd "${srcdir}/${pkgname}" + + make PREFIX="${pkgdir}/usr" install } |