X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-lb0-f196.google.com (mail-lb0-f196.google.com [209.85.217.196]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 20A61DC00C6 for ; Sat, 6 Dec 2014 08:16:02 +0000 (UTC) Received: by mail-lb0-f196.google.com with SMTP id f15so361361lbj.11 for ; Sat, 06 Dec 2014 00:16:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=pdmTsJNDr6bGw37qknS3WfT7q0h00tOOLQWErMWeJuw=; b=xH3VfdorKIk2MVugJqH3z1+qR8HgyXNDOKgNU0D23v3w5/X3vMtu5qXkNkl3OnC2DZ 24//CjnfDqBSKKmBqlTYJd7zT5t7E33qlnclZFYWSaV3Nb9BgUiByrKGQd7MBKh8lrmu QdKjIup97KABdY2B9Icbt73AYlVLYSrM3DDOUfjmTJ4Bm9kWyZMLZ1BdqTTepQtZi8r8 EvH+xCuCtiwRnC+Asw9OydBHo6JS+gdpgvRbXQNUe/kym0cn5BNfJ3sUzbjomH0qxl+W mcu9z7Hjj1ZpSXKB4R+iBgSHSsJcjqN3B2G0HUwKkomSK5sseMct+B9ut4WAAJpKbfVN xHMw== X-Received: by 10.152.170.170 with SMTP id an10mr6583855lac.46.1417853761082; Sat, 06 Dec 2014 00:16:01 -0800 (PST) Received: from alpine-dev.resnet.local ([80.64.106.118]) by mx.google.com with ESMTPSA id l1sm7914023lae.11.2014.12.06.00.15.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Dec 2014 00:16:00 -0800 (PST) From: k0r10n To: alpine-devel@lists.alpinelinux.org Cc: k0r10n Subject: [alpine-devel] [PATCH] testing/i3status: New aport Date: Sat, 6 Dec 2014 12:15:57 +0400 Message-Id: <1417853757-15734-1-git-send-email-k0r10n.dev@gmail.com> X-Mailer: git-send-email 2.0.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/i3status/APKBUILD | 46 +++++++++++++++++++++++++++++++++++++++++ testing/i3status/musl-fix.patch | 13 ++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 testing/i3status/APKBUILD create mode 100644 testing/i3status/musl-fix.patch diff --git a/testing/i3status/APKBUILD b/testing/i3status/APKBUILD new file mode 100644 index 0000000..7fef04f --- /dev/null +++ b/testing/i3status/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: k0r10n +# Maintainer: +pkgname=i3status +pkgver=2.8 +pkgrel=0 +pkgdesc="Generates status bar to use with i3bar, dzen2 or xmobar" +url="http://i3.zekjur.net/i3status/" +arch="all" +license="BSD" +depends="" +depends_dev="wireless-tools-dev alsa-lib-dev confuse-dev yajl-dev" +makedepends="$depends_dev asciidoc" +install="" +subpackages="" +source="http://i3wm.org/i3status/${pkgname}-${pkgver}.tar.bz2 + musl-fix.patch + " +_builddir="$srcdir"/${pkgname}-${pkgver} +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir/" install || return 1 + install -Dm644 LICENSE \ + "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1 +} + +md5sums="68d944e9c1f48183356c9ea15b5b4e3b i3status-2.8.tar.bz2 +75f4468573a132ae9fb255fb9a5531a7 musl-fix.patch" +sha256sums="ab06c5dd454354e6fc64354082616115082b70dc3906361bce5a02beb0f807fe i3status-2.8.tar.bz2 +e976f20fb165d2f96e7a49a95a2d5c803d882883dd4a87bfe20e62f85bf5fb4d musl-fix.patch" +sha512sums="b1e3dbc480660a96a662ccb996769203fae22448f8801cabb56c339ba63ac84d30018c897e2ecac23f513cfe9d9a7d9200a351a2e6b10a42c1929c28e8e22c02 i3status-2.8.tar.bz2 +340c44f68b2f74c2f66314f515f6843a6ac609a4d203ceb152b662aa8822ed405ccbbe459ea2eb1b42891cea84e3b63d1ff3bfe478d7fa2fc6c8b51f39f12a00 musl-fix.patch" diff --git a/testing/i3status/musl-fix.patch b/testing/i3status/musl-fix.patch new file mode 100644 index 0000000..b873fc9 --- /dev/null +++ b/testing/i3status/musl-fix.patch @@ -0,0 +1,13 @@ +--- a/include/i3status.h.orig ++++ b/include/i3status.h +@@ -11,6 +11,10 @@ + #include + #include + ++#ifndef GLOB_TILDE ++#define GLOB_TILDE 0 ++#endif ++ + #define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0) + #define max(a, b) ((a) > (b) ? (a) : (b)) + -- 2.0.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---