aboutsummaryrefslogtreecommitdiffstats
path: root/testing/profanity/APKBUILD
blob: 470e2c9ff93981381997f2bf60325b48251de04b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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"
url="http://www.profanity.im"
arch=all
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	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"
sha256sums="b02c4e029fe84941050ccab6c8cdf5f15df23de5d1384b4d1ec66da6faee11dd  profanity-0.4.7.tar.gz"
sha512sums="805adddbdf41334a2903707ce871f39c36c70639dc4c872cfd36769af36aa3597b05aa9ba719452bcbe8011cc73ac717cee7016c928083cd46c922732ca10568  profanity-0.4.7.tar.gz"