aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snownews
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@me.com>2014-07-28 12:22:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-28 12:27:08 +0000
commitddb54852df6c51f922fb434a8bb3aa807cd97200 (patch)
treed281c0a0c33d776e7a598ec1f5fe0f55642bba7e /testing/snownews
parentb9f5f7a7b6cd999c463f72ed4500068c641c09a7 (diff)
downloadaports-ddb54852df6c51f922fb434a8bb3aa807cd97200.tar.bz2
aports-ddb54852df6c51f922fb434a8bb3aa807cd97200.tar.xz
testing/snownews: new aport
https://kiza.eu/software/snownews/ Snownews is a text mode RSS/RDF newsreader
Diffstat (limited to 'testing/snownews')
-rw-r--r--testing/snownews/APKBUILD44
-rw-r--r--testing/snownews/configure.patch11
2 files changed, 55 insertions, 0 deletions
diff --git a/testing/snownews/APKBUILD b/testing/snownews/APKBUILD
new file mode 100644
index 0000000000..0c165701c2
--- /dev/null
+++ b/testing/snownews/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer:
+pkgname=snownews
+pkgver=1.5.12
+pkgrel=0
+pkgdesc="Snownews is a text mode RSS/RDF newsreader"
+url="https://kiza.eu/software/snownews/"
+arch="all"
+license="GPL"
+depends="ncurses"
+depends_dev="libintl openssl-dev perl ncurses-dev libxml2 readline-dev gettext-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-lang $pkgname-doc"
+source="https://kiza.eu/media/software/snownews/${pkgname}-${pkgver}.tar.gz
+ configure.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"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="80da8943fc5aa96571924aec0087d4c0 snownews-1.5.12.tar.gz
+45e5cd95985c7f00fb13b1df1ce9b83c configure.patch"
+sha256sums="26dd96e9345d9cbc1c0c9470417080dd0c3eb31e7ea944f78f3302d7060ecb90 snownews-1.5.12.tar.gz
+d4346de0fda37d3b98ab58475167e845666c6bb7aab0dff6adf96dbda889a5d7 configure.patch"
+sha512sums="7a7ccd5ea57f8bbb73f1429ab931a38203e858c74a383c5347e66088b84f6a7240feeee99e179687ce0a7a89c6c1406ce20d6c5d6771d25a0a0301fa5526e220 snownews-1.5.12.tar.gz
+b6fcd744d7f7b83685a6c5f6978ebc464367355e8e9eaf82f9922586fc881afc473019aba1e2b90e18a8b77be37175429dc886cdfe28a3fc7c1489a0316b6b33 configure.patch"
diff --git a/testing/snownews/configure.patch b/testing/snownews/configure.patch
new file mode 100644
index 0000000000..66b9e97a80
--- /dev/null
+++ b/testing/snownews/configure.patch
@@ -0,0 +1,11 @@
+--- snownews-1.5.12/configure
++++ snownews-1.5.12/configure.patched
+@@ -13,7 +13,7 @@
+
+ my $prefix = "/usr/local";
+ my $cflags = "-Wall -Wno-format-y2k -O2 -DLOCALEPATH=\"\\\"\$(LOCALEPATH)\\\"\" -DOS=\\\"$os\\\" $xmlcflags \$(EXTRA_CFLAGS) ";
+-my $ldflags = "-lncurses -lcrypto $xmlldflags \$(EXTRA_LDFLAGS) ";
++my $ldflags = "-liconv -lintl -lncurses -lcrypto $xmlldflags \$(EXTRA_LDFLAGS) ";
+
+ my $use_nls = 1;
+ parse_cmdl_line();