From cdbdb41c2da9c3185122be33fdef720f7d9f0883 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sun, 12 Aug 2018 13:43:17 +0000 Subject: user/irssi: new package --- user/irssi/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 user/irssi/APKBUILD (limited to 'user/irssi') diff --git a/user/irssi/APKBUILD b/user/irssi/APKBUILD new file mode 100644 index 000000000..f18681cae --- /dev/null +++ b/user/irssi/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Kiyoshi Aman +# Maintainer: Kiyoshi Aman +pkgname=irssi +pkgver=1.1.1 +pkgrel=0 +pkgdesc="Text-based IRC client" +url="https://irssi.org" +arch="all" +license="GPL-2.0+ AND ISC" +makedepends="ncurses-dev glib-dev openssl-dev perl-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-perl" +source="https://github.com/irssi/irssi/releases/download/$pkgver/irssi-$pkgver.tar.xz" +sha512sums="b2fc0805d6213c31bc34c48237baf2e33ac509c0fa09c483fd39f1473e32eee227ff4532efc60fb495c2ec263c05290578bca7ad6d39149e0594f864da5986c0 irssi-1.1.1.tar.xz" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --enable-true-color \ + --with-perl=module + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +perl() { + depends="perl" + pkgdesc="Perl support & scripts for irssi" + + mkdir -p "$subpkgdir"/usr "$subpkgdir"/usr/share/irssi + mv "$pkgdir"/usr/lib "$subpkgdir"/usr + mv "$pkgdir"/usr/share/irssi/scripts "$subpkgdir"/usr/share/irssi +} -- cgit v1.2.3-70-g09d2