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

Levente Polyak anthraxx at archlinux.org
Mon May 13 22:11:43 UTC 2019


    Date: Monday, May 13, 2019 @ 22:11:43
  Author: anthraxx
Revision: 467174

upgpkg: radamsa 0.6-2

Modified:
  radamsa/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-13 20:43:48 UTC (rev 467173)
+++ PKGBUILD	2019-05-13 22:11:43 UTC (rev 467174)
@@ -3,7 +3,7 @@
 
 pkgname=radamsa
 pkgver=0.6
-pkgrel=1
+pkgrel=2
 pkgdesc='General purpose mutation based fuzzer'
 url='https://gitlab.com/akihe/radamsa'
 arch=('x86_64')
@@ -10,21 +10,25 @@
 license=('MIT')
 depends=('glibc')
 makedepends=('git' 'owl-lisp')
-source=("$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
+source=(https://gitlab.com/akihe/radamsa/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz)
+sha256sums=('a68f11da7a559fceb695a7af7035384ecd2982d666c7c95ce74c849405450b5e')
 sha512sums=('4724454d28abc1fb5ab4485d685dd0f9a514146bba14e48159237306c984a694f8d5656191756edabb984ee6c3e53f317dea2fe1bac41d1625abf8d6877172bc')
 
+prepare() {
+  cd ${pkgname}-v${pkgver}
+  sed -e 's/| gzip -9//' -e 's/radamsa.1.gz/radamsa.1/' -i Makefile
+}
+
 build() {
-  cd $pkgname-v$pkgver
-
-  make build_radamsa CFLAGS="$CFLAGS"
+  cd ${pkgname}-v${pkgver}
+  make build_radamsa
 }
 
 package() {
-  cd $pkgname-v$pkgver
-
-  make DESTDIR="$pkgdir" install
-  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
-  install -Dm 644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd ${pkgname}-v${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 
 # vim: ts=2 sw=2 et:


More information about the arch-commits mailing list