[arch-commits] Commit in elfkickers/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Aug 5 12:29:16 UTC 2019


    Date: Monday, August 5, 2019 @ 12:29:16
  Author: arodseth
Revision: 497484

upgpkg: elfkickers 3.1-3

Modified:
  elfkickers/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-05 12:12:10 UTC (rev 497483)
+++ PKGBUILD	2019-08-05 12:29:16 UTC (rev 497484)
@@ -1,23 +1,32 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
 # Contributor: Mikko Sysikaski <mikko.sysikaski at gmail.com>
 
 pkgname=elfkickers
 pkgver=3.1
-pkgrel=2
+pkgrel=3
 pkgdesc='Collection of ELF utilities (includes sstrip)'
-arch=('x86_64')
-license=('GPL')
-source=("http://www.muppetlabs.com/~breadbox/pub/software/ELFkickers-$pkgver.tar.gz")
-url='http://www.muppetlabs.com/~breadbox/software/elfkickers.html'
+arch=(x86_64)
+url='https://www.muppetlabs.com/~breadbox/software/elfkickers.html'
+license=(GPL)
+makedepends=(setconf)
+depends=(glibc)
+source=("https://www.muppetlabs.com/~breadbox/pub/software/ELFkickers-$pkgver.tar.gz")
 sha256sums=('6d663fb06dd723a078282937052368498e3860d3c42f0d765579d496e5f51a58')
 
+prepare() {
+  for tool in elftoc objres; do
+    setconf ELFkickers-$pkgver/$tool/Makefile CFLAGS "-O2 -I ../elfrw $CFLAGS -Wl,-z,relro,-z,now"
+    setconf ELFkickers-$pkgver/$tool/Makefile LDFLAGS "$LDFLAGS -z,relro,-z,now"
+  done
+}
+
 build() {
-  make -C "ELFkickers-$pkgver" -j1
+  make -C ELFkickers-$pkgver -j1
 }
 
 package() {
   install -d "$pkgdir/usr/"{bin,share/man/man1}
-  make -C "ELFkickers-$pkgver" prefix="$pkgdir/usr" install -j1
+  make -C ELFkickers-$pkgver prefix="$pkgdir/usr" install -j1
 }
 
-# vim:set ts=2 sw=2 et:
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list