aboutsummaryrefslogtreecommitdiffstats
path: root/main/quassel/APKBUILD
blob: 7beb130a28bef667b44989c37df30e3a100f4455 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Maintainer: Yves Schumann <yves@eisfair.org>

pkgname=quassel
pkgver=0.10.0
pkgrel=0
url="http://www.quassel-irc.org/"
pkgdesc="Distributed IRC client - metapackage"
arch="all"
license="GPL"
install="quassel-core.pre-install"
depends="quassel-common"
makedepends="qt-dev cmake dbus-dev openssl-dev paxctl"
subpackages="$pkgname-common $pkgname-core $pkgname-client"
source="http://www.quassel-irc.org/pub/quassel-$pkgver.tar.bz2
       quasselcore.confd
       quasselcore.initd"

build() {
	cd "$srcdir"
	mkdir build

	cd build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr/ \
		-DWITH_KDE=0 \
		-DCMAKE_BUILD_TYPE="Release" \
		-DWITH_OPENSSL=ON \
		-DWANT_CORE=ON \
		-DWANT_MONO=ON \
		-DWANT_QTCLIENT=ON \
		-DWITH_DBUS=OFF \
		-DWITH_OXYGEN=OFF \
		-DWITH_PHONON=OFF \
		-DWITH_WEBKIT=OFF \
		../quassel-$pkgver/ || return 1
	make
}

package() {
	cd "$srcdir"/build
	make DESTDIR="$pkgdir" install/fast || return 1
	paxctl -cm "$pkgdir"/usr/bin/quasselcore || return 1
}

common() {
	pkgdesc="Quassel common/shared files"
	mkdir -p "$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/share/apps \
		"$pkgdir"/usr/share/icons \
		"$subpkgdir"/usr/share
}

core() {
	pkgdesc="Core component of distributed IRC client"
	depends="$pkgname-common"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/quasselcore "$subpkgdir"/usr/bin/ || return 1
	install -Dm0644 "$srcdir"/quasselcore.confd \
		"$subpkgdir"/etc/conf.d/quasselcore || return 1
	install -Dm0755 ${srcdir}/quasselcore.initd \
		"$subpkgdir"/etc/init.d/quasselcore || return 1
}

client() {
	pkgdesc="Quassel client"
	depends="$pkgname-common"
	mkdir -p "$subpkgdir"/usr/bin \
		"$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/bin/quasselclient "$subpkgdir"/usr/bin/ || return 1
	mv "$pkgdir"/usr/share/pixmaps \
		"$pkgdir"/usr/share/applications \
		"$subpkgdir"/usr/share/
}
md5sums="382466a7790979c172b7d7edf10a2981  quassel-0.10.0.tar.bz2
b196216514a44fd596a664a53e05d93e  quasselcore.confd
f89fc57239eb6b0bd6cc905a4118b6e3  quasselcore.initd"
sha256sums="68228ce23aa3a992add3d00cb1e8b4863d8ca64bea99c881edf6d16ff9ec7c23  quassel-0.10.0.tar.bz2
16cfaf919268ee3c3281fc4ad0dfc128b1c98f5edfc5cc522addd512f36d293c  quasselcore.confd
dce417f76dcefd7b1152763dd8e4c099c8d121d84282065cd0009726fc3ace71  quasselcore.initd"
sha512sums="e194d4f9bbcecedfebd72c48d5f1e2a4185ff9d69134629b79e532af8f3fa9841e3cb99a6aae30e9bd79440c08487eeb23d6d6914690b90d1ae0952bb6168693  quassel-0.10.0.tar.bz2
e03df342f47945f948106883a7757262ab7a8a7d21f0b4dd01cfcc95e836c2e00f2e0177a353b4f7a4b6f80ffa970be06d49aa9a42cad1f3834382267e5a0d7f  quasselcore.confd
9c07c6fe5ae0a6d9f72bfdd4cff5d873b722e6379caa1c54851ee68b0cf37048afc23b0ebb366ce1547898376053c261c0c4b0cb564d21c39ade33ffc98c40f1  quasselcore.initd"