diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-09-21 14:52:47 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-09-21 14:52:47 +0200 |
commit | e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc (patch) | |
tree | c6b816e7ba8f9b659e1be415ebf1dac4262c3b82 /main/snownews | |
parent | 452d447d89b3a3775b7f602d7352a8cfe8a0f9d4 (diff) | |
download | aports-e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc.tar.bz2 aports-e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc.tar.xz |
testing/*: move to main
Diffstat (limited to 'main/snownews')
-rw-r--r-- | main/snownews/APKBUILD | 44 | ||||
-rw-r--r-- | main/snownews/configure.patch | 11 |
2 files changed, 55 insertions, 0 deletions
diff --git a/main/snownews/APKBUILD b/main/snownews/APKBUILD new file mode 100644 index 0000000000..d3839b5b56 --- /dev/null +++ b/main/snownews/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: ScrumpyJack <scrumpyjack@me.com> +# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> +pkgname=snownews +pkgver=1.5.12 +pkgrel=1 +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 +1cc8b5571c4d977417b41915f74ffef5 configure.patch" +sha256sums="26dd96e9345d9cbc1c0c9470417080dd0c3eb31e7ea944f78f3302d7060ecb90 snownews-1.5.12.tar.gz +597e360414501f0588459316c4b51b905a9d0eec4ce75ce891b2e315f39bbbbc configure.patch" +sha512sums="7a7ccd5ea57f8bbb73f1429ab931a38203e858c74a383c5347e66088b84f6a7240feeee99e179687ce0a7a89c6c1406ce20d6c5d6771d25a0a0301fa5526e220 snownews-1.5.12.tar.gz +d7ed00a401c1963a5619b0b221ae354e5a8a8423f75313e906f43b5a64c099fac8239d7eb1a34d47c284e96b9ad2965f1ecdad58fb28101f7397143847a5e230 configure.patch" diff --git a/main/snownews/configure.patch b/main/snownews/configure.patch new file mode 100644 index 0000000000..8f2699bbc9 --- /dev/null +++ b/main/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 = "-lintl -lncursesw -lcrypto $xmlldflags \$(EXTRA_LDFLAGS) "; + + my $use_nls = 1; + parse_cmdl_line(); |