aboutsummaryrefslogtreecommitdiffstats
path: root/testing/spectools/APKBUILD
blob: 3c10fe79a8dbd49008759bfdf6a22bec3ba4b04e (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
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=spectools
pkgver=201108
_pkgver=2011-08-R1
pkgrel=0
pkgdesc="Utilities for using Wi-Spy USB spectrum analyzer"
url="https://www.kismetwireless.net/spectools/"
arch="all"
license="GPL2+"
depends=""
depends_dev="gtk+2.0-dev bash cairo-dev libusb-compat-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://www.kismetwireless.net/code/$pkgname-${_pkgver}.tar.gz"

_builddir="$srcdir"/$pkgname-${_pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	autoreconf --install
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc/
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="b742d5c7dec6fbd3c5070e54d43e6570  spectools-2011-08-R1.tar.gz"
sha256sums="ce981cd2b86c6246dc7cb9c0166b85e586e5f5835d3ed147e8901ef18f00220e  spectools-2011-08-R1.tar.gz"
sha512sums="92c80b34049055cec6d677db165fb2d06d75fbff9f04d41ab81fa57900f639936e6a9a01f06165aea863b35760964016f0984f17816859d054bc9d14353e847b  spectools-2011-08-R1.tar.gz"