updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hardened-cc / PKGBUILD
blob38467752f3fff13b138dbac704d9a6b2f8340301
1 pkgname=hardened-cc
2 pkgver=4
3 pkgrel=1
4 pkgdesc="Wrapper for GCC to reliably build hardened packages. Modified hardening script as used in Ubuntu/Debian"
5 arch=('any')
6 license=('unknown')
7 url='https://wiki.ubuntu.com/Security/HardeningWrapper'
8 depends=('dash>=0.5.7')
9 source=('hgcc' "$pkgname.install")
10 install="$pkgname.install"
11 sha256sums=('26bf23a1f71900a60e2a15279adacdf01ceba56dfea6638c968d927b751cea79'
12             '6218c994a57207369e81e66387e429e087c3f4e658a3e5da620259ffd94e192f')
13 build() {
14         sed "s|gcc|g++|g" "$srcdir/hgcc" > "$srcdir/hg++"
17 package() {
18         install -Dm0755 "$srcdir/hgcc" "$pkgdir/usr/bin/hgcc"
19         install -Dm0755 "$srcdir/hg++" "$pkgdir/usr/bin/hg++"