summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdefb55a3d358b7485e4631b7fea31455bfeb2e6 (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
# Maintainer: Stephen Brennan <smb196@case.edu>
pkgname=communi-desktop-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=r2931.f15534d
pkgrel=2
pkgdesc="An IRC client for desktop environments."
arch=('x86_64' 'i686')
url=""
license=('GPL')
groups=()
depends=('qt5-declarative' 'libcommuni-git')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git://github.com/communi/communi-desktop.git')
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
        git submodule update --init
}

build() {
	cd "$srcdir/${pkgname%-git}"
        qmake
	make
}

check() {
	cd "$srcdir/${pkgname%-git}"
	make -k check
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make INSTALL_ROOT="$pkgdir/" install
}