aboutsummaryrefslogtreecommitdiffstats
path: root/community/tint2
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-22 07:19:30 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-22 07:19:30 +0000
commite1858a4746c3817c4b0f36464548655c637d3e86 (patch)
treebebfd0d98a0f8a0f66c636bccf538a3abe96864c /community/tint2
parentcd9a6e0c30cbf4f623aaa082f940cbdaab733aaa (diff)
downloadaports-e1858a4746c3817c4b0f36464548655c637d3e86.tar.bz2
aports-e1858a4746c3817c4b0f36464548655c637d3e86.tar.xz
community/tint2: moved from testing, bumped pkgrel
Diffstat (limited to 'community/tint2')
-rw-r--r--community/tint2/APKBUILD43
-rw-r--r--community/tint2/musl-fixes.patch16
2 files changed, 59 insertions, 0 deletions
diff --git a/community/tint2/APKBUILD b/community/tint2/APKBUILD
new file mode 100644
index 0000000000..efd3cb4f2c
--- /dev/null
+++ b/community/tint2/APKBUILD
@@ -0,0 +1,43 @@
+# 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=1
+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
+
+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"
diff --git a/community/tint2/musl-fixes.patch b/community/tint2/musl-fixes.patch
new file mode 100644
index 0000000000..6d1aeee7b4
--- /dev/null
+++ b/community/tint2/musl-fixes.patch
@@ -0,0 +1,16 @@
+--- src/util/common.c.orig 2016-01-29 08:21:02.000701749 +0100
++++ src/util/common.c 2016-01-29 08:21:49.545577920 +0100
+@@ -38,9 +38,12 @@
+ #include <sys/time.h>
+ #include <sys/resource.h>
+ #include <errno.h>
+-#include <sys/sysctl.h>
+ #include <dirent.h>
+
++#if !defined(__linux__) || defined(__linux__) && defined(__GLIBC__)
++#include <sys/sysctl.h>
++#endif
++
+ #ifdef HAVE_RSVG
+ #include <librsvg/rsvg.h>
+ #endif