summaryrefslogtreecommitdiff
path: root/community/prelink/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/prelink/PKGBUILD')
-rw-r--r--community/prelink/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/prelink/PKGBUILD b/community/prelink/PKGBUILD
new file mode 100644
index 000000000..8c67cdabc
--- /dev/null
+++ b/community/prelink/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 90944 2013-05-16 03:44:23Z eric $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Juergen Hoetzel <juergen@archlinux.org>
+# Contributor: Rouslan Solomakhin <rouslan@localnet.com>
+
+pkgname=prelink
+pkgver=20111012
+pkgrel=2
+pkgdesc='ELF prelinking utility to speed up dynamic linking.'
+arch=('i686' 'x86_64')
+url='http://people.redhat.com/jakub/prelink/'
+license=('GPL')
+depends=('elfutils')
+backup=('etc/prelink.conf')
+source=("http://people.redhat.com/jakub/prelink/${pkgname}-${pkgver}.tar.bz2"
+ 'prelink.conf'
+ 'arch-x86_64-dynamic_linker.patch')
+md5sums=('f5aaf347432d677c293e5e3399ba4fdf'
+ '0793ed49e9b31c125cba4d936c333cf6'
+ 'b347580536e078b34c547742d36a3e9d')
+
+prepare() {
+ cd ${pkgname}
+ patch -Np0 -i ../arch-x86_64-dynamic_linker.patch
+}
+
+build() {
+ cd ${pkgname}
+ ./configure --prefix=/usr --mandir=/usr/share/man --sbin=/usr/bin
+ make
+}
+
+package() {
+ cd ${pkgname}
+ make DESTDIR="${pkgdir}" install
+ install -Dm0644 "${srcdir}/prelink.conf" "${pkgdir}/etc/prelink.conf"
+}