mirror of
https://github.com/archlinux/aur.git
synced 2026-02-28 16:07:46 +01:00
tt-rss-feedmod-git + patch
This commit is contained in:
parent
2221e84ded
commit
6e20bae680
3 changed files with 26 additions and 5 deletions
6
.SRCINFO
6
.SRCINFO
|
|
@ -1,7 +1,7 @@
|
|||
pkgbase = tt-rss-feedmod
|
||||
pkgdesc = Article Filter plugin for Tiny-Tiny-RSS to replace article stubs by website contents
|
||||
pkgver = f668480
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://github.com/mbirth/ttrss_plugin-af_feedmod
|
||||
arch = any
|
||||
license = GPL2
|
||||
|
|
@ -10,7 +10,9 @@ pkgbase = tt-rss-feedmod
|
|||
provides = tt-rss-feedmod
|
||||
conflicts = tt-rss-feedmod
|
||||
source = git+https://github.com/mbirth/ttrss_plugin-af_feedmod
|
||||
md5sums = SKIP
|
||||
source = type_replace.patch
|
||||
sha1sums = SKIP
|
||||
sha1sums = 9731c145802878379815ca16b57a4084435d3b88
|
||||
|
||||
pkgname = tt-rss-feedmod
|
||||
|
||||
|
|
|
|||
13
PKGBUILD
13
PKGBUILD
|
|
@ -3,7 +3,7 @@
|
|||
pkgname=tt-rss-feedmod
|
||||
_gitname=ttrss_plugin-af_feedmod
|
||||
pkgver=f668480
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Article Filter plugin for Tiny-Tiny-RSS to replace article stubs by website contents"
|
||||
arch=('any')
|
||||
url="https://github.com/mbirth/ttrss_plugin-af_feedmod"
|
||||
|
|
@ -12,14 +12,21 @@ depends=('tt-rss')
|
|||
makedepends=('git')
|
||||
provides=('tt-rss-feedmod')
|
||||
conflicts=('tt-rss-feedmod')
|
||||
source=('git+https://github.com/mbirth/ttrss_plugin-af_feedmod')
|
||||
md5sums=('SKIP')
|
||||
source=('git+https://github.com/mbirth/ttrss_plugin-af_feedmod'
|
||||
'type_replace.patch')
|
||||
sha1sums=('SKIP'
|
||||
'9731c145802878379815ca16b57a4084435d3b88')
|
||||
|
||||
pkgver() {
|
||||
cd "$_gitname"
|
||||
git describe --always | sed 's|-|.|g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
patch -p1 < type_replace.patch
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"
|
||||
install -d -m755 "$pkgdir/usr/share/webapps/tt-rss/plugins/af_feedmod/"
|
||||
|
|
|
|||
12
type_replace.patch
Normal file
12
type_replace.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--- a/ttrss_plugin-af_feedmod/init.php 2014-06-16 14:21:06.995480038 +0200
|
||||
+++ b/ttrss_plugin-af_feedmod/init.php 2014-06-16 14:22:00.151027654 +0200
|
||||
@@ -147,6 +147,9 @@
|
||||
}
|
||||
}
|
||||
break;
|
||||
+ case 'replace':
|
||||
+ $article['content'] = preg_replace("/".$config['pattern']."/",$config['replacement'],$article['content']);
|
||||
+ break;
|
||||
|
||||
default:
|
||||
// unknown type or invalid config
|
||||
Loading…
Add table
Reference in a new issue