summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/irssi/APKBUILD46
1 files changed, 46 insertions, 0 deletions
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 <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+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
+}