aboutsummaryrefslogtreecommitdiffstats
path: root/testing/profanity/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/profanity/APKBUILD')
-rw-r--r--testing/profanity/APKBUILD49
1 files changed, 38 insertions, 11 deletions
diff --git a/testing/profanity/APKBUILD b/testing/profanity/APKBUILD
index 98a74a2ccc..470e2c9ff9 100644
--- a/testing/profanity/APKBUILD
+++ b/testing/profanity/APKBUILD
@@ -1,25 +1,52 @@
-# Maintainer:
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
-
+# Maintainer:
pkgname=profanity
pkgver=0.4.7
pkgrel=0
-pkgdesc='Console based XMPP client'
+pkgdesc="Console based XMPP client"
+url="http://www.profanity.im"
arch=all
-url='http://www.profanity.im'
-license='GPL3'
-makedepends='curl-dev expat-dev glib-dev libotr-dev libstrophe-dev readline-dev util-linux-dev'
-subpackages="$pkgname-doc"
+license="GPL3"
+depends=""
+depends_dev=""
+makedepends="curl-dev expat-dev glib-dev libotr-dev
+ libstrophe-dev readline-dev util-linux-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-themes"
source="http://www.profanity.im/profanity-$pkgver.tar.gz"
+_builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$srcdir"/$pkgname-$pkgver
- ./configure --prefix=/usr || return 1
- make || return 1
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
}
package() {
- make -C "$srcdir"/$pkgname-$pkgver DESTDIR="$pkgdir" install || return 1
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples
+ install -m644 profrc.example \
+ "$pkgdir"/usr/share/doc/$pkgname/examples || return 1
+}
+
+themes() {
+ pkgdesc="UI themes for $pkgname"
+ arch="noarch"
+
+ mkdir -p "$subpkgdir"/usr/share/$pkgname
+ mv "$pkgdir"/usr/share/$pkgname/themes \
+ "$subpkgdir"/usr/share/$pkgname || return 1
}
md5sums="f044c54c7fee23ab8c4be7228a6bea9b profanity-0.4.7.tar.gz"