aboutsummaryrefslogtreecommitdiffstats
path: root/community/tint2/APKBUILD
blob: cbe1f6d030dfc43ffcd4b9d0ef96c702502d97d8 (plain) (blame)
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
# 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=0.13.1
_gitver="4d12abdb4263d6875b069e7b2c214e65a7c1edac"
pkgrel=2
pkgdesc="tint2 is a simple unintrusive panel/taskbar"
url="https://gitlab.com/o9000/tint2"
arch="all"
license="GPL2"
depends="imlib2 glib pango cairo libxcomposite libxdamage
	libxinerama libxrandr gtk+"
depends_dev=""
makedepends="$depends_dev 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"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://dev.alpinelinux.org/archive/${pkgname}/${pkgname}-${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-${pkgver//./-}-$_gitver

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

build() {
	cd "$builddir"/build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		.. || return 1
	make || return 1
}

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

sha512sums="c41e70663a57c3d40a55589ed0dc85aebcaf39356fa145e11a3762e036580c1a3fe2566272cab96a28ebe3709eb2bf5caaac08bc12a239a8f7e7bcd6101e0708  tint2-0.13.1.tar.gz"