summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08b7d0ab8c12bcfeba650d8bbf7e18164df1aad6 (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
# Maintainer: Pierre Chapuis <arch@catwell.info>

pkgname=execstack
pkgver=20130503
pkgrel=8
pkgdesc="set the executable stack flag of ELF binaries and libraries"
depends=(libelf elfutils)
arch=("x86_64")
url="https://people.redhat.com/jakub/prelink"
license=("GPL")
conflicts=(prelink)
source=("https://people.redhat.com/jakub/prelink/prelink-$pkgver.tar.bz2")
sha256sums=("6339c7605e9b6f414d1be32530c9c8011f38820d36431c8a62e8674ca37140f0")

build () {
    cd prelink

    # fix libelf detection
    sed -i 's/#include <string.h>/&\n#include <unistd.h>/' m4/libelf.m4
    autoreconf -fi

    ./configure
    cd src
    make execstack
}

package () {
    cd prelink/src
    mkdir -p "$pkgdir/usr/bin"
    cp execstack "$pkgdir/usr/bin"
}