summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 706038e9101a65dddf900a10784946498079fa37 (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
# Maintainer: Pierre Choffet <peuc@wanadoo.fr>

# Note: unlike the ring-daemon-git and libringclient-git, this package doesn't
# use pinned commit, so you may encounter some compatibility issues with lower
# level librairies if their packages are not updated. In this case, just append
# #commit=<commit_id> in source url.

pkgname=ring-kde-git
pkgver=2.0.0.r269.g910e74e
pkgrel=1
pkgdesc="KDE client for Ring"
arch=("i686" "x86_64")
url="http://ring.cx/"
license=("GPL3")
groups=("ring")
depends=("libringclient-git" "knotifyconfig" "hicolor-icon-theme")
makedepends=("git" "extra-cmake-modules" "python" "glu" "kinit")
provides=("ring-kde")
conflicts=("ring-kde")
changelog="ChangeLog"
source=("git://anongit.kde.org/ring-kde")
sha256sums=('SKIP')

pkgver() {
	cd "ring-kde"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "ring-kde"
	# fix missing tray icon
	sed 's|setIconByPixmap(.*);|setIconByName("ring-kde");|' -i src/widgets/systray.cpp
}

build() {
	cd "ring-kde"

	mkdir -p build
	cd build
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release

	make
}

package() {
	cd "ring-kde/build"
	make DESTDIR="$pkgdir" install
}