diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-05-05 16:49:37 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-05-05 17:06:10 +0200 |
commit | fa93823faab1a54dbfc8f128df6322059f92fca9 (patch) | |
tree | 68d5e38e00dd21205a4158d8787296ffc2677045 /testing/ii/APKBUILD | |
parent | 430db08d67245babfeb8fc3e6b2ac58725aac3c8 (diff) | |
download | aports-fa93823faab1a54dbfc8f128df6322059f92fca9.tar.bz2 aports-fa93823faab1a54dbfc8f128df6322059f92fca9.tar.xz |
testing/ii: respect our CFLAGS and LDFLAGS, modernize APKBUILD
Diffstat (limited to 'testing/ii/APKBUILD')
-rw-r--r-- | testing/ii/APKBUILD | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/testing/ii/APKBUILD b/testing/ii/APKBUILD index 513df869d3..3f256c6216 100644 --- a/testing/ii/APKBUILD +++ b/testing/ii/APKBUILD @@ -2,26 +2,34 @@ # Maintainer: lemon <lemon@bitmessage.ch> pkgname=ii pkgver=1.7 -pkgrel=0 +pkgrel=1 pkgdesc="minimalist FIFO and filesystem-based IRC client" url="http://tools.suckless.org/ii" arch="all" license="GPL" depends="" +makedepends="" +install="" +options="!check" subpackages="$pkgname-doc" -source="http://dl.suckless.org/tools/ii-$pkgver.tar.gz" +source="http://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + default_prepare + sed -i -e '/CFLAGS/{s/-g -O0//;s/=/+=/}' \ + -e '/LDFLAGS/{s/-s//;s/=/+=/}' \ + "$builddir"/config.mk || return 1 +} -_builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" make PREFIX=/usr || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" PREFIX=/usr install } -md5sums="6191008ca09770873d84f40270493d0e ii-1.7.tar.gz" -sha256sums="3a72ac6606d5560b625c062c71f135820e2214fed098e6d624fc40632dc7cc9c ii-1.7.tar.gz" sha512sums="1fa744bc9b4291b5c6c56e023d982aad59001137db6c7682284a2d63e649a32d558adbb85ae3407e312ae5436852b4278c2c522d4ef03f47cf54ea3a1f13ca90 ii-1.7.tar.gz" |