summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 286d0279a5ac8f87b4afdf674cfefa32d4af0e42 (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
32
33
# Maintainer: Gordian Edenhofer <gordian.edenhofer@gmail.com>
# Contributor: Jonathan Liu <net147@gmail.com>

pkgname=electricfence
pkgver=2.2.7
pkgrel=1
pkgdesc="A malloc(3) debugger that uses virtual memory hardware to detect illegal memory accesses."
arch=('i686' 'x86_64')
license=('GPL2')
url="https://packages.debian.org/sid/electric-fence"
depends=('glibc' 'bash')
source+=("http://archive.ubuntu.com/ubuntu/pool/universe/e/electric-fence/electric-fence_${pkgver}.tar.gz"
	"ef.sh")
sha512sums=('7cf9db3888ea5499b78f6cf62d58e05748269ac5b26a47aab4b2a812f8b44814c9f16f733432f3af6694aebe6fd9cc2d5a8b5a5d1f7e7c3be054f002f90752b8'
            '8f9c9ac510636d380c5e388c8039435dc66cd488082ef074c6fe2f512ac2a8d286b023184443b0717ef7b7abfa34061474ad59ffade0a9cd510819be5ff6d406')

build() {
	make -C "${srcdir}/work"
}

check() {
	cd "${srcdir}/work"

	./eftest
	./tstheap 3072
}

package() {
	cd "${srcdir}/work"

	make DESTDIR="${pkgdir}" install
	install -D -m755 ../ef.sh "${pkgdir}"/usr/bin/ef
}