aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tint2/APKBUILD
blob: 577df74f4dea40674757881449532e74916a6dd8 (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
50
51
52
# 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.12.11
_gitver=5a5d8fd9784b3ceac5b51954099c686660ad1cde
pkgrel=0
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="$pkgname-$pkgver.tar.gz::https://gitlab.com/o9000/${pkgname}/repository/archive.tar.gz?ref=${pkgver}"
_builddir="$srcdir"/$pkgname-$pkgver-$_gitver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	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"
	make DESTDIR="${pkgdir}" install || return 1
}

md5sums="4b76b0b786ad4fd931dd3e734d809c7a  tint2-0.12.11.tar.gz"
sha256sums="50d019a61cb0b9f81a76e727e17d31b6ff9db34a9f71cb2d65ce4225a4fa6737  tint2-0.12.11.tar.gz"
sha512sums="0737b4c856882e0067dea9084de006ee3ccb71f8d3d4e0d2cc2c7c86331f26d89cd715cfbeb8e9a2cad2301552f65fc6917f1d16ef5aa79b9bafe976b6f105e8  tint2-0.12.11.tar.gz"