diff options
author | dai9ah <dai9ah@protonmail.com> | 2018-02-12 03:13:21 +0200 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-12 21:30:23 +0000 |
commit | 5fae44dabc94e856732f7e95219f01226e52323f (patch) | |
tree | 0002c3080a7bfd95c3ba851df2bd525377592ade /testing/ii | |
parent | aa958525f38cda49eb7c4e8f3af5417a507b75d7 (diff) | |
download | aports-5fae44dabc94e856732f7e95219f01226e52323f.tar.bz2 aports-5fae44dabc94e856732f7e95219f01226e52323f.tar.xz |
testing/ii: fix license, add license to docs, modernize
Diffstat (limited to 'testing/ii')
-rw-r--r-- | testing/ii/APKBUILD | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/testing/ii/APKBUILD b/testing/ii/APKBUILD index 6c90b98bf4..70fd725c4a 100644 --- a/testing/ii/APKBUILD +++ b/testing/ii/APKBUILD @@ -2,34 +2,31 @@ # Maintainer: lemon <lemon@bitmessage.ch> pkgname=ii pkgver=1.8 -pkgrel=0 -pkgdesc="minimalist FIFO and filesystem-based IRC client" +pkgrel=1 +pkgdesc="Minimalist FIFO and filesystem-based IRC client" url="http://tools.suckless.org/ii" arch="all" -license="GPL" -depends="" -makedepends="" -install="" +license="MIT" options="!check" # upstream doesn't have a test suite subpackages="$pkgname-doc" source="http://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz" -builddir="$srcdir"/$pkgname-$pkgver + +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 + sed -i "$builddir/config.mk" \ + -e '/CFLAGS/{s/-g -O0//;s/=/+=/}' \ + -e '/LDFLAGS/{s/-s//;s/=/+=/}' } build() { - cd "$builddir" - make PREFIX=/usr || return 1 + make -C "$builddir" } package() { - cd "$builddir" - make DESTDIR="$pkgdir" PREFIX=/usr install + cd "$builddir" + make DESTDIR="$pkgdir" PREFIX=/usr install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } sha512sums="2b41a0611ac76612c9333e8490709ee22d17506f0c5d7e680a0d8f3f8b511bd5b279555cf609c1543aba71948819369a3c306b1168086890aa49c145b7860e17 ii-1.8.tar.gz" |