-
Notifications
You must be signed in to change notification settings - Fork 90
/
PKGBUILD
38 lines (31 loc) · 951 Bytes
/
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
34
35
36
37
38
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=220
pkgname=ssldump-git
pkgver=20201014.r186
pkgrel=1
groups=('archstrike' 'archstrike-sniffers')
pkgdesc="an SSLv3/TLS network protocol analyzer"
url="https://github.com/adulau/ssldump"
license=('custom')
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
depends=('libpcap' 'openssl' 'libnet')
makedepends=('git' 'autoconf')
provides=('ssldump')
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s.r%s" "$(git show -s --format=%ci master | sed "s/\ .*//g;s/-//g")" "$(git rev-list --count HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
./autogen.sh
./configure --prefix=/usr "--sbindir=${pkgdir}/usr/bin" "--mandir=${pkgdir}/usr/share/man"
make
}
package() {
cd "${srcdir}/${pkgname}"
make "prefix=${pkgdir}/usr" install
# Install license.
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}