aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-27 14:14:22 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-27 14:22:25 +0000
commit9a3d8e391a5c1481a66fa4fc7e679171fe6a2152 (patch)
treecc1e64119632142a46e00e21966f8cc4dc82d546 /main
parent488443722c56299f15c69a64e1e8554e0bc55535 (diff)
downloadaports-9a3d8e391a5c1481a66fa4fc7e679171fe6a2152.tar.bz2
aports-9a3d8e391a5c1481a66fa4fc7e679171fe6a2152.tar.xz
main/newt: fix includes (to build against musl)
Diffstat (limited to 'main')
-rw-r--r--main/newt/APKBUILD13
-rw-r--r--main/newt/fix-includes.patch8
2 files changed, 17 insertions, 4 deletions
diff --git a/main/newt/APKBUILD b/main/newt/APKBUILD
index 1ec0838f34..3d3549041c 100644
--- a/main/newt/APKBUILD
+++ b/main/newt/APKBUILD
@@ -1,16 +1,16 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=newt
pkgver=0.52.11
-pkgrel=2
+pkgrel=3
pkgdesc="Redhat's Newt windowing toolkit development files"
url="https://fedorahosted.org/newt/"
arch="all"
license="LGPL-2"
depends=
-makedepends="slang-dev popt-dev python-dev ncurses-dev wget"
+makedepends="slang-dev popt-dev python-dev ncurses-dev"
subpackages="$pkgname-dev $pkgname-doc py-newt:py"
source="https://fedorahosted.org/releases/n/e/newt/newt-$pkgver.tar.gz
- "
+ fix-includes.patch"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
@@ -50,4 +50,9 @@ py() {
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
-md5sums="4b9a0685ecd180c42d2c4a5806e3fc52 newt-0.52.11.tar.gz"
+md5sums="4b9a0685ecd180c42d2c4a5806e3fc52 newt-0.52.11.tar.gz
+d4637d1cec167e1d7087b9137b6954db fix-includes.patch"
+sha256sums="8bac17b4272475f5e172b9894b8c062a6e5ab0689a736d9dbbcc1695604fb8d7 newt-0.52.11.tar.gz
+bff77da4814f8f4ec09572bac464bf7545d4790ada2f4c0deffb27128b6dd83d fix-includes.patch"
+sha512sums="525da1b5af09fd023935a8ebbeaa34524c01145efb696f4baeff6c0bdba6eee35aed14403e0195816c9d9c3a9fe9fc8e2e0bc5c3965780f3c2c00e4dfe272c8d newt-0.52.11.tar.gz
+ce53446eb587b79790f12f806f02999568cb49067520813ab146d1f16c71f009e86ab72d08666e483b550fdae3332b673935b8aa1a14b02f5273217fb5404611 fix-includes.patch"
diff --git a/main/newt/fix-includes.patch b/main/newt/fix-includes.patch
new file mode 100644
index 0000000000..0995b6d8e8
--- /dev/null
+++ b/main/newt/fix-includes.patch
@@ -0,0 +1,8 @@
+--- newt-0.52.11.orig/whiptail.c
++++ newt-0.52.11/whiptail.c
+@@ -1,4 +1,5 @@
+ #include "config.h"
++#include <sys/stat.h>
+ #include <fcntl.h>
+ #include <popt.h>
+ #include <stdio.h>