2019-07-28 16:25:33 +02:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
2016-06-22 11:35:27 +02:00
|
|
|
|
|
|
|
pkgname=freshrss
|
2024-09-06 14:57:05 +02:00
|
|
|
pkgver=1.24.3
|
2024-11-13 11:48:55 +01:00
|
|
|
pkgrel=2
|
2016-06-22 11:35:27 +02:00
|
|
|
pkgdesc='A free, self-hostable aggregator…'
|
|
|
|
arch=('any')
|
|
|
|
url='http://freshrss.org/'
|
2024-05-30 17:17:45 +02:00
|
|
|
license=('AGPL-3.0-only')
|
2024-11-13 11:48:55 +01:00
|
|
|
depends=('php-interpreter>=7.4')
|
2016-06-22 11:35:27 +02:00
|
|
|
optdepends=('apache: Web server to run FreshRSS'
|
|
|
|
'nginx: Web server to run FreshRSS'
|
|
|
|
'mysql: Database server to run FreshRSS'
|
2016-11-02 13:49:00 +01:00
|
|
|
'postgresql: Database server to run FreshRSS'
|
2016-06-22 11:35:27 +02:00
|
|
|
'sqlite: Database server to run FreshRSS')
|
|
|
|
install="$pkgname.install"
|
2022-01-03 10:41:39 +01:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/FreshRSS/FreshRSS/archive/$pkgver.tar.gz")
|
2024-09-06 14:57:05 +02:00
|
|
|
sha256sums=('74a926eee3d253c24893492b43957e4b184f99c6421458e5cbc08c57723bcba4')
|
2016-06-22 11:35:27 +02:00
|
|
|
|
2019-12-01 14:45:34 +01: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/"
|
2019-12-01 14:45:34 +01:00
|
|
|
|
|
|
|
#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
|
2022-01-03 10:41:39 +01:00
|
|
|
install -dm 755 "$pkgdir/var/lib/webapps/freshrss"
|
2019-12-01 14:45:34 +01:00
|
|
|
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:
|