archlinux-pkgbuilds/freshrss/PKGBUILD

46 lines
1.4 KiB
Text
Raw Normal View History

# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
2016-06-22 11:35:27 +02:00
pkgname=freshrss
pkgver=1.19.1
pkgrel=1
2016-06-22 11:35:27 +02:00
pkgdesc='A free, self-hostable aggregator…'
arch=('any')
url='http://freshrss.org/'
license=('AGPL')
depends=('php')
2016-06-22 11:35:27 +02:00
optdepends=('apache: Web server to run FreshRSS'
'nginx: Web server to run FreshRSS'
'cherokee: Web server to run FreshRSS'
'mysql: Database server to run FreshRSS'
'postgresql: Database server to run FreshRSS'
2016-06-22 11:35:27 +02:00
'sqlite: Database server to run FreshRSS')
install="$pkgname.install"
source=("$pkgname-$pkgver.tar.gz::https://github.com/FreshRSS/FreshRSS/archive/$pkgver.tar.gz")
sha256sums=('32fd540e12380f755cf9e169f8bb405fcd1033b96e78460a29d00948e3a7029c')
2016-06-22 11:35:27 +02:00
prepare(){
cd "${srcdir}/FreshRSS-$pkgver"
sed -i "s!FRESHRSS_PATH . '/data'!'/var/lib/webapps/freshrss/data'!" constants.php
}
2016-06-22 11:35:27 +02:00
package() {
cd "${srcdir}/FreshRSS-$pkgver"
install -d "$pkgdir/usr/share/webapps/freshrss"
cp -r . "$pkgdir/usr/share/webapps/freshrss/"
#do some cleanup
find "$pkgdir/usr/share/webapps/freshrss" -name '.git*' -exec rm -rf {} \; || true
rm -rf "$pkgdir/usr/share/webapps/freshrss/Docker"
rm -rf "$pkgdir/usr/share/webapps/freshrss/tests"
#new location for datadir
install -dm 755 "$pkgdir/var/lib/webapps/freshrss"
mv "$pkgdir/usr/share/webapps/freshrss/data" "$pkgdir/var/lib/webapps/freshrss/data"
2016-06-22 11:35:27 +02:00
}
# vim:set ts=2 sw=2 et: