summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52efda7187377b52235690cc2c7be80cc5b4e5f9 (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
#Contributor: Anselmo L. S. Melo <anselmolsm @ gmail.com>

pkgname=iceberg-git
pkgver=r93.1574dbc
pkgrel=1
pkgdesc="Iceberg is an icecream GUI monitor"
url="https://github.com/hugopl/Iceberg"
license=('GPL')
depends=('qt5-base' 'icecream')
arch=('i686' 'x86_64')
source=('iceberg::git+https://github.com/hugopl/Iceberg.git')
md5sums=('SKIP')
makedepends=('git' 'cmake>=2.8.10.2' 'icecream' 'qt5-base')
provides=('iceberg')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	mkdir -p build
}

build() {
	cd "$srcdir/${pkgname%-git}/build"
    	export PKG_CONFIG_PATH=/usr/lib/icecream/lib/pkgconfig/:$PKG_CONFIG_PATH
	cmake -DCMAKE_INSTALL_PREFIX=$pkgdir/opt/iceberg ..
	make
}

package() {
	cd "$srcdir/${pkgname%-git}/build"
	mkdir -p $pkgdir/usr/bin
	make install
	ln -s /opt/iceberg/bin/iceberg $pkgdir/usr/bin/iceberg
}