summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd256573b54dcf0e18e0f2d5e203b32f5999c1b7 (plain)
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
# Maintainer: Karol Babioch <karol@babioch.de>

pkgname=flamethrower
pkgver=0.10
pkgrel=1
pkgdesc="DNS performance and functional testing utility"
arch=('i686' 'x86_64')
url="https://github.com/DNS-OARC/flamethrower"
license=('APACHE')
depends=('ldns' 'libuv')
makedepends=('cmake')
source=("git+https://github.com/DNS-OARC/flamethrower.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
    cd "${srcdir}/${pkgname}"
    # Fix a issue with CMake package name of ldns
    sed -i 's/libldns/ldns/' CMakeLists.txt
    mkdir -p build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr ..
    make
}

package() {
    cd "${srcdir}/${pkgname}"
    install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm0644 man/flame.1 "$pkgdir/usr/share/man/man1/flame.1"
    cd build
    install -Dm0755 flame "$pkgdir/usr/bin/flame"
}