aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ii/APKBUILD
blob: 3f256c6216efe4907714b99db99bf696ff14a65d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: lemon <lemon@bitmessage.ch>
# Maintainer: lemon <lemon@bitmessage.ch>
pkgname=ii
pkgver=1.7
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/$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
}

build() {
       cd "$builddir"
       make PREFIX=/usr || return 1
}

package() {
       cd "$builddir"
       make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="1fa744bc9b4291b5c6c56e023d982aad59001137db6c7682284a2d63e649a32d558adbb85ae3407e312ae5436852b4278c2c522d4ef03f47cf54ea3a1f13ca90  ii-1.7.tar.gz"