aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tint2/APKBUILD
blob: b3a790005026ad9637f25d7d0399b3827a834bad (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.12
_gitver=e9d6ec9f2301e88857ffa7b287a4a3eb36543940
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="1fe0003fcbae92e38d5d27f89dad5b6d  tint2-0.12.12.tar.gz"
sha256sums="f91b0d4669b6cd7de6a21efe8bf3f26cfe8878ebf1ab8e8804bf0289a650034e  tint2-0.12.12.tar.gz"
sha512sums="aa60169d720ca1533c2888f0b612d94aeaad2b949bbcf5dee61e81a4229a7a6d5de4ca9010c2f231a745c01f59edd76f70500b5354070d5d24684d1e386f5615  tint2-0.12.12.tar.gz"