aboutsummaryrefslogtreecommitdiffstats
path: root/community/tint2/APKBUILD
blob: d569b45a88f386a5c729a3894857a70400c415be (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
# Contributor: Mari Hahn <mari.hahn@wwu.de>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=tint2
pkgver=16.6.1
pkgrel=0
pkgdesc="tint2 is a simple unintrusive panel/taskbar"
url="https://gitlab.com/o9000/tint2"
arch="all"
license="GPL-2.0"
options="!check"
depends="imlib2 glib pango cairo libxcomposite libxdamage
	libxinerama libxrandr gtk+"
makedepends="cmake imlib2-dev glib-dev pango-dev cairo-dev
    libxcomposite-dev libxdamage-dev libxinerama-dev libxrandr-dev
    gtk+-dev librsvg-dev startup-notification-dev linux-headers"
subpackages="$pkgname-doc $pkgname-lang"
source="https://gitlab.com/o9000/$pkgname/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-v${pkgver}

prepare() {
	cd "$builddir"
	mkdir -p build
}

build() {
	cd "$builddir"/build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_SYSCONFDIR=/etc \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		..
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="${pkgdir}" install
}

sha512sums="d82e64883f40ae93daa67b4dc0aaa530456d28ee2d52c224d8eb1c91bc59bc43ba530843250274079e1567cd30eb9fd1eb79324aeec1af4bb3d748a046fd93aa  tint2-v16.6.1.tar.bz2"