35 lines
1.2 KiB
Text
35 lines
1.2 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=freshrss
|
|
pkgver=1.20.2
|
|
pkgrel=0
|
|
pkgdesc="FreshRSS is a self-hosted RSS feed aggregator"
|
|
arch="noarch"
|
|
url="http://freshrss.org"
|
|
license="AGPL-3.0-only"
|
|
_php=php81
|
|
_php_mods="-ctype -curl -dom -fileinfo -gmp -iconv -intl -json -mbstring
|
|
-openssl -phar -session -simplexml -tokenizer -xml -xmlreader -xmlwriter
|
|
-zip -zlib"
|
|
depends="$_php ${_php_mods//-/$_php-}"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/FreshRSS/FreshRSS/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/FreshRSS-$pkgver"
|
|
options='!check' # No testsuite
|
|
pkgusers="freshrss"
|
|
pkggroups="www-data"
|
|
|
|
package() {
|
|
local datadir="/var/lib/$pkgname"
|
|
local wwwdir="/usr/share/webapps/$pkgname"
|
|
local confdir="/etc/$pkgname"
|
|
|
|
install -d "$pkgdir"/$datadir "$pkgdir"/$wwwdir "$pkgdir"/$confdir
|
|
cp -r "$builddir"/. "$pkgdir"/$wwwdir
|
|
mv "$pkgdir"/$wwwdir/data "$pkgdir"/$datadir
|
|
ln -s "/var/lib/freshrss" "$pkgdir"/$wwwdir/data
|
|
}
|
|
|
|
sha512sums="
|
|
87437ab7d275c4911e58d16136431749b8e090a00ab73115239d79e32043357d36c0415bb3936268a68ec94df3fbd28596d95153b57c37bccb3867010a9ae73a freshrss-1.20.2.tar.gz
|
|
"
|