summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBryan Horna2020-12-19 22:10:25 -0500
committerBryan Horna2020-12-19 22:10:25 -0500
commit5f8fcfea70b6622bc516b486132d6bb84409144f (patch)
treeb85d0372a9aa1205a106c58f7a7f2e5ec80cdd31 /PKGBUILD
parent06a5b8a8e4f01edbbcbc79c5e83f6b716deabbd0 (diff)
downloadaur-5f8fcfea70b6622bc516b486132d6bb84409144f.tar.gz
Fix build by adding missing dependencies
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 28 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 096eb2cfd91..20a52ec497f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,19 +3,39 @@
pkgname=asleap
pkgver=2.2
-pkgrel=2
+pkgrel=3
pkgdesc='Actively recover LEAP/PPTP passwords.'
-arch=(i686 x86_64)
+arch=(x86_64)
license=(GPL)
url=http://www.willhackforsushi.com/Asleap.html
depends=(openssl libpcap)
source=(
http://www.willhackforsushi.com/code/asleap/$pkgver/asleap-$pkgver.tgz
+ libxcrypt1.deb::http://mirrors.kernel.org/ubuntu/pool/universe/libx/libxcrypt/libxcrypt1_2.4-4_amd64.deb
+ libxcrypt-dev.deb::http://mirrors.kernel.org/ubuntu/pool/universe/libx/libxcrypt/libxcrypt-dev_2.4-4_amd64.deb
+ libxcrypt.patch
+)
+noextract=(
+ libxcrypt1.deb
+ libxcrypt-dev.deb
+ libxcrypt.patch
)
md5sums=(
a1d06729fb2addcc5b09bfc14f9b3173
+ SKIP
+ SKIP
+ SKIP
)
+prepare() {
+ mkdir deb
+ ar p libxcrypt1.deb data.tar.xz | tar xJC deb
+ ar p libxcrypt-dev.deb data.tar.xz | tar xJC deb
+
+ cd $srcdir/asleap-$pkgver
+ patch --forward --strip=1 --input="${srcdir}/libxcrypt.patch"
+}
+
build() {
cd $srcdir/asleap-$pkgver
make
@@ -25,4 +45,10 @@ package() {
cd $srcdir/asleap-$pkgver
install -D asleap $pkgdir/usr/bin/asleap
install -D genkeys $pkgdir/usr/bin/genkeys
+
+ cd $srcdir/deb
+ install -dv $pkgdir/usr/lib
+ mv lib/libxcrypt.so.1.2.4 $pkgdir/usr/lib
+ ln -s $pkgdir/usr/lib/libxcrypt.so.1.2.4 $pkgdir/usr/lib/libxcrypt.so
+ ln -s $pkgdir/usr/lib/libxcrypt.so.1.2.4 $pkgdir/usr/lib/libxcrypt.so.1
}