ayaports/user/freshrss/APKBUILD

35 lines
1.2 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=freshrss
pkgver=1.21.0
pkgrel=0
pkgdesc="FreshRSS is a self-hosted RSS feed aggregator"
arch="!armv7 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="
a36fd73367c12deb67bdc3b4d79ac53607528e9acc06f08909eb14a5134f63b0050f7fc0099b17707dbb8b5f1d9c757a28ed1c4a6b762c27a3391696ce45f7b4 freshrss-1.21.0.tar.gz
"