aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ii/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ii/APKBUILD')
-rw-r--r--testing/ii/APKBUILD22
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"