-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
PKGBUILD
33 lines (28 loc) · 1.05 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
pkgname=sh4d0wup
pkgver=0.0.0
pkgrel=1
pkgdesc="Signing-key abuse and update exploitation framework"
url='https://github.com/kpcyrd/sh4d0wup'
arch=('x86_64')
license=('GPL-3.0-or-later')
depends=('podman' 'openssl' 'shared-mime-info' 'xz' 'libzstd.so')
checkdepends=('sequoia-sqv')
makedepends=('cargo' 'clang')
build() {
cd ..
cargo build --release --locked
}
package() {
cd ..
install -Dm 755 -t "${pkgdir}/usr/bin" \
target/release/sh4d0wup
# install completions
install -d "${pkgdir}/usr/share/bash-completion/completions" \
"${pkgdir}/usr/share/zsh/site-functions" \
"${pkgdir}/usr/share/fish/vendor_completions.d"
"${pkgdir}/usr/bin/${pkgname}" completions bash > "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
"${pkgdir}/usr/bin/${pkgname}" completions zsh > "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
"${pkgdir}/usr/bin/${pkgname}" completions fish > "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
}
# vim: ts=2 sw=2 et: