mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/rsstail: new aport. Fixes #10077
This commit is contained in:
parent
5b87d82652
commit
a38dc405cd
36
testing/rsstail/APKBUILD
Normal file
36
testing/rsstail/APKBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||
pkgname=rsstail
|
||||
pkgver=2.1
|
||||
pkgrel=0
|
||||
pkgdesc="tail for rss feeds"
|
||||
url="https://www.vanheusden.com/rsstail/"
|
||||
arch="all"
|
||||
license="GPL-2.0-only"
|
||||
makedepends="libmrss-dev curl-dev"
|
||||
checkdepends="cppcheck"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://www.vanheusden.com/$pkgname/$pkgname-$pkgver.tgz
|
||||
fix-build.patch
|
||||
makefile-suppor-install-destdir-path.patch"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
return 0
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
mkdir -p "$pkgdir"/usr/bin
|
||||
make DESTDIR=$pkgdir install
|
||||
}
|
||||
|
||||
sha512sums="61eec722e4c519b5ccebae93849f3f88810a1ff2e70dc311ad55fd15b7751d3d4dedf65e1c0ff875bee58df998f48aba7337a20bcebd2121dcead4ab1ac7ff1f rsstail-2.1.tgz
|
||||
997088b1e608b2c341f5e090e7cf39db8140919812eb7238daa5e908300c84e2dd39f4b4b4bdd3b4e15a08c26380ccc92f68fec62a9bb2c63a1e8522d61ea89e fix-build.patch
|
||||
a1bb0e08203e9db22e240f1b63019f447d7dc1cae729ce0f64c47df71ab2f7b1ad4af5faa04df2223ebb7bd8a5ff0f4525a271754ec53696a7ea5f15aee67a5a makefile-suppor-install-destdir-path.patch"
|
||||
12
testing/rsstail/fix-build.patch
Normal file
12
testing/rsstail/fix-build.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/Makefile.orig
|
||||
+++ b/Makefile
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
-DEBUG=-g
|
||||
-LDFLAGS=-liconv_hook -lmrss $(DEBUG)
|
||||
-CFLAGS=-O3 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
|
||||
+override LDFLAGS+=-lmrss
|
||||
+override CFLAGS+=-Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
|
||||
|
||||
OBJS=r2t.o
|
||||
|
||||
28
testing/rsstail/makefile-suppor-install-destdir-path.patch
Normal file
28
testing/rsstail/makefile-suppor-install-destdir-path.patch
Normal file
@ -0,0 +1,28 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 69ab43d..c8fca9d 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -5,7 +5,7 @@ override CFLAGS+=-Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
|
||||
|
||||
OBJS=r2t.o
|
||||
|
||||
-prefix ?= /usr/local
|
||||
+prefix ?= /usr
|
||||
bindir ?= $(prefix)/bin
|
||||
mandir ?= $(prefix)/share/man/man1
|
||||
|
||||
@@ -15,10 +15,10 @@ rsstail: $(OBJS)
|
||||
$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o rsstail
|
||||
|
||||
install: rsstail
|
||||
- mkdir -p $(bindir)
|
||||
- mkdir -p $(mandir)
|
||||
- install rsstail $(bindir)
|
||||
- install -m 644 rsstail.1 $(mandir)
|
||||
+ mkdir -p $(DESTDIR)$(bindir)
|
||||
+ mkdir -p $(DESTDIR)$(mandir)
|
||||
+ install rsstail $(DESTDIR)$(bindir)
|
||||
+ install -m 644 rsstail.1 $(DESTDIR)$(mandir)
|
||||
|
||||
uninstall:
|
||||
rm $(bindir)/rsstail $(mandir)/rsstail.1
|
||||
Loading…
x
Reference in New Issue
Block a user