2021-05-16 02:26:06 +00:00
|
|
|
pkgname="arsse"
|
2021-05-17 11:27:22 +00:00
|
|
|
pkgver=0.9.1.r10.7abdf05
|
2021-05-16 02:26:06 +00:00
|
|
|
pkgrel=1
|
|
|
|
epoch=
|
|
|
|
pkgdesc="RSS/Atom newsfeed synchronization server"
|
|
|
|
arch=("any")
|
|
|
|
url="https://thearsse.com/"
|
|
|
|
license=("MIT")
|
|
|
|
groups=()
|
2021-05-16 19:59:52 +00:00
|
|
|
depends=()
|
2021-05-17 03:06:49 +00:00
|
|
|
makedepends=("git" "php" "php-intl" "composer")
|
2021-05-16 02:26:06 +00:00
|
|
|
checkdepends=()
|
2021-05-17 19:47:26 +00:00
|
|
|
optdepends=("php-pgsql: PostgreSQL database support"
|
|
|
|
"nginx: HTTP server"
|
|
|
|
"apache: HTTP server")
|
2021-05-16 02:26:06 +00:00
|
|
|
provides=()
|
|
|
|
conflicts=()
|
|
|
|
replaces=()
|
2021-05-16 19:59:52 +00:00
|
|
|
backup=("etc/webapps/arsse/config.php" "etc/php/php-fpm.d/arsse.conf")
|
2021-05-16 02:26:06 +00:00
|
|
|
options=()
|
|
|
|
install=
|
|
|
|
changelog=
|
2021-05-17 19:47:26 +00:00
|
|
|
source=("git+file://$(dirname $(dirname $(pwd)))")
|
2021-05-16 02:26:06 +00:00
|
|
|
noextract=()
|
2021-05-17 03:06:49 +00:00
|
|
|
md5sums=("SKIP")
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/arsse"
|
|
|
|
composer install
|
|
|
|
./robo manual
|
|
|
|
composer install --no-dev -o -n --no-scripts
|
2021-05-17 11:27:22 +00:00
|
|
|
php arsse.php conf save-defaults config.defaults.php
|
|
|
|
rm -r vendor/bin
|
2021-05-17 03:06:49 +00:00
|
|
|
}
|
2021-05-16 02:26:06 +00:00
|
|
|
|
|
|
|
package() {
|
2021-05-16 19:59:52 +00:00
|
|
|
depends=("php" "php-intl" "php-sqlite" "php-fpm")
|
2021-05-16 02:26:06 +00:00
|
|
|
cd "$pkgdir"
|
2021-05-17 03:06:49 +00:00
|
|
|
mkdir -p "usr/bin" "usr/share/webapps/arsse" "usr/share/doc/arsse" "usr/share/licenses/arsse" "usr/lib/systemd/system" "usr/lib/sysusers.d" "etc/php/php-fpm.d/" "etc/webapps/arsse" "etc/webapps/arsse/nginx"
|
2021-05-16 02:26:06 +00:00
|
|
|
cd "$srcdir/arsse"
|
2021-05-17 03:06:49 +00:00
|
|
|
cp dist/arch/arsse.sh "$pkgdir/usr/bin/arsse"
|
2021-05-16 02:26:06 +00:00
|
|
|
cp -r lib locale sql vendor www CHANGELOG UPGRADING README.md arsse.php "$pkgdir/usr/share/webapps/arsse"
|
|
|
|
cp -r manual/* "$pkgdir/usr/share/doc/arsse"
|
|
|
|
cp LICENSE AUTHORS "$pkgdir/usr/share/licenses/arsse"
|
2021-05-17 03:06:49 +00:00
|
|
|
cp dist/arch/*.service "$pkgdir/usr/lib/systemd/system"
|
|
|
|
cp dist/arch/sysuser.conf "$pkgdir/usr/lib/sysusers.d/arsse.conf"
|
|
|
|
cp dist/arch/php-fpm.conf "$pkgdir/etc/php/php-fpm.d/arsse.conf"
|
|
|
|
cp dist/arch/config.php config.defaults.php "$pkgdir/etc/webapps/arsse"
|
|
|
|
cp dist/arch/nginx/* "$pkgdir/etc/webapps/arsse/nginx"
|
2021-05-16 02:26:06 +00:00
|
|
|
cd "$pkgdir"
|
|
|
|
chmod -R a=rX *
|
|
|
|
chmod a=rx usr/bin/arsse
|
|
|
|
chmod u=r etc/webapps/arsse/*
|
|
|
|
ln -sT "/etc/webapps/arsse/config.php" "usr/share/webapps/arsse/config.php"
|
|
|
|
}
|