# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Lubomir Krajcovic <lubomir.krajcovic(AT)gmail(DOT)com>

pkgname=checksec
pkgver=1.5
pkgrel=4
pkgdesc='Tool designed to test which standard Linux OS and PaX security features are being used'
url='http://www.trapkit.de/tools/checksec.html'
arch=('any')
license=('BSD')
depends=(bash)
source=('http://www.trapkit.de/tools/checksec.sh')
md5sums=('075996be339ab16ad7b94d6de3ee07bd')

package() {
  install -Dm755 checksec.sh "$pkgdir/usr/bin/checksec"
  install -d "$pkgdir/usr/share/licenses/$pkgname"
  tail -n +3 checksec.sh | head -32 | cut -c3- > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
