1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Make package from local files for now

This commit is contained in:
J. King 2021-05-16 23:06:49 -04:00
parent 971c12ff9f
commit 7abdf05b7f
2 changed files with 24 additions and 21 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@
/documentation/ /documentation/
/manual/ /manual/
/tests/coverage/ /tests/coverage/
/dist/arch/arsse
/dist/arch/src /dist/arch/src
/dist/arch/pkg /dist/arch/pkg
/arsse.db* /arsse.db*

44
dist/arch/PKGBUILD vendored
View file

@ -1,3 +1,4 @@
_repopath=`dirname $(dirname $(pwd))`
pkgname="arsse" pkgname="arsse"
pkgver="0.9.1" pkgver="0.9.1"
pkgrel=1 pkgrel=1
@ -8,7 +9,7 @@ url="https://thearsse.com/"
license=("MIT") license=("MIT")
groups=() groups=()
depends=() depends=()
makedepends=() makedepends=("git" "php" "php-intl" "composer")
checkdepends=() checkdepends=()
optdepends=("php-pgsql: PostgreSQL database support") optdepends=("php-pgsql: PostgreSQL database support")
provides=() provides=()
@ -18,38 +19,39 @@ backup=("etc/webapps/arsse/config.php" "etc/php/php-fpm.d/arsse.conf")
options=() options=()
install= install=
changelog= changelog=
source=("https://thearsse.com/releases/0.9.0.tar.gz" source=("git+file://$_repopath")
"arsse.service"
"arsse-fetch.service"
"sysuser.conf"
"config.php"
"php-fpm.conf"
"arsse.sh")
noextract=() noextract=()
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
php arsse.php conf save-defaults config.defaults.php
}
package() { package() {
depends=("php" "php-intl" "php-sqlite" "php-fpm") depends=("php" "php-intl" "php-sqlite" "php-fpm")
cd "$pkgdir" cd "$pkgdir"
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/webapps/arsse" "etc/php/php-fpm.d/" 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"
cd "$srcdir/arsse" cd "$srcdir/arsse"
cp ../arsse.sh "$pkgdir/usr/bin/arsse" cp dist/arch/arsse.sh "$pkgdir/usr/bin/arsse"
cp -r lib locale sql vendor www CHANGELOG UPGRADING README.md arsse.php "$pkgdir/usr/share/webapps/arsse" 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 -r manual/* "$pkgdir/usr/share/doc/arsse"
cp LICENSE AUTHORS "$pkgdir/usr/share/licenses/arsse" cp LICENSE AUTHORS "$pkgdir/usr/share/licenses/arsse"
cp ../*.service "$pkgdir/usr/lib/systemd/system" cp dist/arch/*.service "$pkgdir/usr/lib/systemd/system"
cp ../sysuser.conf "$pkgdir/usr/lib/sysusers.d/arsse.conf" cp dist/arch/sysuser.conf "$pkgdir/usr/lib/sysusers.d/arsse.conf"
cp ../config.php config.defaults.php "$pkgdir/etc/webapps/arsse" cp dist/arch/php-fpm.conf "$pkgdir/etc/php/php-fpm.d/arsse.conf"
cp ../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"
cd "$pkgdir" cd "$pkgdir"
chmod -R a=rX * chmod -R a=rX *
chmod a=rx usr/bin/arsse chmod a=rx usr/bin/arsse
chmod u=r etc/webapps/arsse/* chmod u=r etc/webapps/arsse/*
ln -sT "/etc/webapps/arsse/config.php" "usr/share/webapps/arsse/config.php" ln -sT "/etc/webapps/arsse/config.php" "usr/share/webapps/arsse/config.php"
} }
md5sums=('93327083c316daf879c70921189ed7b6'
'91871736d9594b2c92d1fa6b6e4f2803'
'0ca05e2965247d4651a986aad81d80e1'
'b6ef9ab7e9062df1d5ba060066b6d734'
'33e7a5b290ef20339952f1d904b33f8f'
'943d35272b0aa7af2bf3818a0c9bd5fc'
'4fb46ec290e497279c3dd7c8c528abf6')