aboutsummaryrefslogtreecommitdiffstats
path: root/main/newsbeuter/APKBUILD
blob: 4a7ff510dc42f31ec7ac9295a6a48b943c1bb1e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=newsbeuter
pkgver=2.9
pkgrel=3
pkgdesc="Configurable text-based feed reader"
url="http://newsbeuter.org/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev json-c-dev curl-dev ncurses-dev sqlite-dev
	stfl-dev libxml2-dev gettext-dev perl"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://newsbeuter.org/downloads/newsbeuter-$pkgver.tar.gz
	0001-Remove-iconv-translit-references.patch
	newsbeuter-2.9-ncurses6.patch
	fix-segfault.patch
	"

_builddir="$srcdir"/newsbeuter-$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"
	./config.sh || return 1
	echo "LDFLAGS+=-lintl" >> config.mk

	make prefix=/usr || return 1

}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" prefix=/usr install || return 1
}

md5sums="9cf332dc7e591023147bda7add430835  newsbeuter-2.9.tar.gz
2d158695303d3605425d5b30465408b8  0001-Remove-iconv-translit-references.patch
6450d3794d543f9edae934f86a3ce7ef  newsbeuter-2.9-ncurses6.patch
bbf607a93fa88d75a137e60b2b4d8eba  fix-segfault.patch"
sha256sums="74a8bf019b09c3b270ba95adc29f2bbe48ea1f55cc0634276b21fcce1f043dc8  newsbeuter-2.9.tar.gz
122613fd512a17f938d98ceb5aa3a1a9ddcff7dc4e7ac640e490637d2f645ba9  0001-Remove-iconv-translit-references.patch
5ae54c463f44d91725da3be655d2b107d598ade6da86ab4a99b10b039b8dba27  newsbeuter-2.9-ncurses6.patch
6359708ee01f5e1b773a6ed79b7369b30aad5397b85fd252c2fa7d0c2616ea86  fix-segfault.patch"
sha512sums="b173008c8c8d3729f8ccef3ce62645a05c1803fb842d5c0afdf9ffd4ed3726030f9c359c20bc817402a6a0ea12af742d0ae7faf9b92d52c11f420f62b430b0aa  newsbeuter-2.9.tar.gz
1cfbe93cd8ca5785b1c26ccfdf1ed467700046c8ca564f33752b0f04f91d37765f83bf82ad593eae41532edf79a8f6992283255f9a2aa8293d14728b175c9dd7  0001-Remove-iconv-translit-references.patch
08f7125fd8f2b33fa5e36cbd947ec90bcd8b08be2df7961aced20ce031788b3970c1adeb027b1527ba06f18ddbc38518f2c22da6b5fdbc4b1cd5b0edda22ba0b  newsbeuter-2.9-ncurses6.patch
da986beb12b0ba473fea55c067abcdcdae6c073bf4d66bc8913696a4da99c4072edaf3910769d8e4bcef3a0411875eb23fbc840e0e7572aa0e16e922cc3d2947  fix-segfault.patch"