updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / littleblackbox / PKGBUILD
blobaecfbdaa3cc5f01556c3595ad4a62d86c5c6aeec
1 # Maintainer: Marek Otahal <markotahal gmail>
3 pkgname=littleblackbox
4 pkgver=0.1.3
5 pkgrel=1
6 pkgdesc="security/penetration testing tool, search in a collection of thousands of private SSL keys extracted from various embedded devices"
7 arch=(any)
8 url="http://code.google.com/p/littleblackbox/wiki/FAQ"
9 license=('MIT')
10 depends=('openssl' 'libpcap' 'sqlite3')
11 makedepends=('tar')
12 source=("http://littleblackbox.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
13 sha1sums=('b9e1c0090a2b67b6425bc680cd11e7ce0a7beb32')
15 build() {
16 msg "installing $pkgname ..."
17 cd $srcdir
18 tar xvf $pkgname-$pkgver.tar.gz 
19 cd $pkgname-$pkgver
20 rm -f bin/$pkgname 2>/dev/null
21 cd src
22 make distclean
23 ./configure
24 make
27 package() {
28 cd $srcdir/$pkgname-$pkgver
30 install -m755 -d ${pkgdir}/usr/bin $pkgdir/usr/share/doc/$pkgname \
31     $pkgdir/usr/share/licenses/$pkgname $pkgdir/usr/share/$pkgname
33 install -m755 bin/$pkgname ${pkgdir}/usr/bin
34 install -m644 bin/lbb.db $pkgdir/usr/share/$pkgname
35 ln -s /usr/share/$pkgname/lbb.db $pkgdir/usr/bin/lbb.db
37 install -m644 docs/LICENSE $pkgdir/usr/share/$pkgname
39 install -m644 docs/{FAQ,README,submission.txt} $pkgdir/usr/share/doc/$pkgname
41 msg "done"
44 # vim:set ts=2 sw=2 et: