summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2018-08-12 13:43:17 +0000
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2018-08-12 13:43:17 +0000
commitcdbdb41c2da9c3185122be33fdef720f7d9f0883 (patch)
tree38b8cd3429dad47df0dcb35f7f26f6890a14931d
parent1834b3ed24478593fa11d5352c7a814d535e3eb6 (diff)
downloadpackages-cdbdb41c2da9c3185122be33fdef720f7d9f0883.tar.gz
packages-cdbdb41c2da9c3185122be33fdef720f7d9f0883.tar.bz2
packages-cdbdb41c2da9c3185122be33fdef720f7d9f0883.tar.xz
packages-cdbdb41c2da9c3185122be33fdef720f7d9f0883.zip
user/irssi: new package
-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
+}