blob: bfaf040db7b19f73891830c512c13f1915fc052a (
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
53
54
55
56
|
# Contributor: Mari Hahn <mari.hahn@wwu.de>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=tint2
pkgver=0.12.6
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="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"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/o9000/${pkgname}/repository/archive.tar.gz?ref=${pkgver}
musl-fixes.patch"
_builddir="$srcdir"/$pkgname-$pkgver-117ffb2bfda625b44d4c833f882b727eddeb6add
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="f46484d777640965f4deaa36e5b27306 tint2-0.12.6.tar.gz
cfbb1a843981f796e7c50b510b167844 musl-fixes.patch"
sha256sums="7f40cf36f0e579b9d81651aff09e470b4cbae496accc905e91cdda1fdaf57e9f tint2-0.12.6.tar.gz
03d4ae8516d59fc58d992b5b134c8cae11bf74b55b52832063dd684694bec696 musl-fixes.patch"
sha512sums="7e8a476163ccd2902acb53db361af1739f047ba41d72f22c7836856126e6ed17ac62f06bb2f62a93642979f1b916b6b99d72e64a1b73e24fc53bca4dfc3c8016 tint2-0.12.6.tar.gz
6dc60882cadcc3b5acb9b12cd894024daef9be9854716826b74977d5c476fd0c0ddafe11a2ed18f4368a73e2c53f3bd97cadace350a04de7d81a7ee52d4809be musl-fixes.patch"
|