PKGBUILDs/community/hardening-wrapper/PKGBUILD

37 lines
1.4 KiB
Bash
Raw Normal View History

2015-01-10 17:35:45 +00:00
# $Id$
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added ARM conf files
pkgname=hardening-wrapper
2015-03-14 19:02:24 +00:00
pkgver=9
2015-01-10 17:35:45 +00:00
pkgrel=1
pkgdesc='Wrapper scripts for building hardened executables by default'
arch=(i686 x86_64)
url='https://github.com/thestinger/hardening-wrapper'
license=('MIT')
depends=(bash)
backup=(etc/hardening-wrapper.conf)
2015-03-14 19:02:24 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/thestinger/hardening-wrapper/archive/$pkgver.tar.gz"
2015-01-10 17:35:45 +00:00
path.sh hardening-wrapper-i686.conf hardening-wrapper-x86_64.conf
hardening-wrapper-arm{,v6h,v7h}.conf
hardening-wrapper-aarch64.conf)
2015-03-14 19:02:24 +00:00
sha1sums=('c71a3ea32759c71b779e532c6911d93dba301271'
2015-01-10 17:35:45 +00:00
'1e5f6d9931f01b26bb4b6fbb839e21d34d534cdc'
'4d7a8f4818c531ce7002e860e0654b42b6147037'
'50db33c08439393b673c23d542e274beef44fbdd'
'50db33c08439393b673c23d542e274beef44fbdd'
'50db33c08439393b673c23d542e274beef44fbdd'
'50db33c08439393b673c23d542e274beef44fbdd'
2015-01-10 17:35:45 +00:00
'50db33c08439393b673c23d542e274beef44fbdd')
package() {
install -Dm644 hardening-wrapper-${CARCH}.conf "$pkgdir/etc/hardening-wrapper.conf"
install -Dm644 path.sh "$pkgdir/etc/profile.d/hardening-wrapper.sh"
cd $pkgname-$pkgver
make install DESTDIR="$pkgdir" PREFIX=/usr
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}