diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-10-20 15:27:09 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-10-20 15:28:59 +0200 |
commit | d747b8af645da710f03f135eeabd9b49031c7b4f (patch) | |
tree | b5d3daf2eed791708f2cc4d9f36f38d3c34c93fd /testing/profanity | |
parent | 0d9044a160c7ef1b26b3e5c154ba5ac664c516c6 (diff) | |
download | aports-d747b8af645da710f03f135eeabd9b49031c7b4f.tar.bz2 aports-d747b8af645da710f03f135eeabd9b49031c7b4f.tar.xz |
testing/profanity: cleanup and create themes subpackage
Also install the example profrc file.
Diffstat (limited to 'testing/profanity')
-rw-r--r-- | testing/profanity/APKBUILD | 49 |
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" |