Skip to content

Commit

Permalink
mdk3: use debian source.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Dec 6, 2024
1 parent 18778f3 commit d50c8a6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions packages/mdk3/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,30 @@ groups=('blackarch' 'blackarch-wireless' 'blackarch-fuzzer'
url='https://aspj.aircrack-ng.org/'
arch=('x86_64' 'aarch64')
license=('GPL2')
depends=('glibc')
#source=("$pkgname-$pkgver.tar.bz2::https://aspj.aircrack-ng.org/$pkgname-$pkgver.tar.bz2")
source=("https://github.com/Wikel/$pkgname-$pkgver/raw/master/$pkgname-$pkgver.tar.bz2")
sha512sums=('a7879e832a7184f85b9b4f591fddb313731a8d8899c98ca3a1f026284bec79018d4ae373d5fd9cc1935915ad848761dc5f865aeca38ca4e13122e9c9f9108c3a')
depends=('glibc' 'aircrack-ng')
source=("https://salsa.debian.org/pkg-security-team/$pkgname/-/archive/debian/master/$pkgname-debian-master.tar.bz2")
sha512sums=('79dff994816e78ae1001074f93f266ad7b820cf03c0b2c3e61d9eb73e2a047c9bb912bcfb14f6dec09584c017407bd84fea127a11cc355b5f8a77102ef0ded89')

prepare() {
cd "$pkgname-$pkgver"
cd "$pkgname-debian-master"

patches=$(cat debian/patches/series)
for patch in $patches; do
patch -Np1 -i debian/patches/$patch
done

sed "s|-g -O3|${CFLAGS}|g" -i Makefile
sed 's|sbin|bin|g' -i Makefile
}

build() {
cd "$pkgname-$pkgver"
cd "$pkgname-debian-master"

make -C osdep
make
}
package() {
cd "$pkgname-$pkgver"
cd "$pkgname-debian-master"

make DESTDIR="$pkgdir" PREFIX="/usr" install

Expand Down

0 comments on commit d50c8a6

Please sign in to comment.