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:
parent
971c12ff9f
commit
7abdf05b7f
2 changed files with 24 additions and 21 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
|||
/documentation/
|
||||
/manual/
|
||||
/tests/coverage/
|
||||
/dist/arch/arsse
|
||||
/dist/arch/src
|
||||
/dist/arch/pkg
|
||||
/arsse.db*
|
||||
|
|
44
dist/arch/PKGBUILD
vendored
44
dist/arch/PKGBUILD
vendored
|
@ -1,3 +1,4 @@
|
|||
_repopath=`dirname $(dirname $(pwd))`
|
||||
pkgname="arsse"
|
||||
pkgver="0.9.1"
|
||||
pkgrel=1
|
||||
|
@ -8,7 +9,7 @@ url="https://thearsse.com/"
|
|||
license=("MIT")
|
||||
groups=()
|
||||
depends=()
|
||||
makedepends=()
|
||||
makedepends=("git" "php" "php-intl" "composer")
|
||||
checkdepends=()
|
||||
optdepends=("php-pgsql: PostgreSQL database support")
|
||||
provides=()
|
||||
|
@ -18,38 +19,39 @@ backup=("etc/webapps/arsse/config.php" "etc/php/php-fpm.d/arsse.conf")
|
|||
options=()
|
||||
install=
|
||||
changelog=
|
||||
source=("https://thearsse.com/releases/0.9.0.tar.gz"
|
||||
"arsse.service"
|
||||
"arsse-fetch.service"
|
||||
"sysuser.conf"
|
||||
"config.php"
|
||||
"php-fpm.conf"
|
||||
"arsse.sh")
|
||||
source=("git+file://$_repopath")
|
||||
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() {
|
||||
depends=("php" "php-intl" "php-sqlite" "php-fpm")
|
||||
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"
|
||||
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 manual/* "$pkgdir/usr/share/doc/arsse"
|
||||
cp LICENSE AUTHORS "$pkgdir/usr/share/licenses/arsse"
|
||||
cp ../*.service "$pkgdir/usr/lib/systemd/system"
|
||||
cp ../sysuser.conf "$pkgdir/usr/lib/sysusers.d/arsse.conf"
|
||||
cp ../config.php config.defaults.php "$pkgdir/etc/webapps/arsse"
|
||||
cp ../php-fpm.conf "$pkgdir/etc/php/php-fpm.d/arsse.conf"
|
||||
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"
|
||||
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"
|
||||
}
|
||||
md5sums=('93327083c316daf879c70921189ed7b6'
|
||||
'91871736d9594b2c92d1fa6b6e4f2803'
|
||||
'0ca05e2965247d4651a986aad81d80e1'
|
||||
'b6ef9ab7e9062df1d5ba060066b6d734'
|
||||
'33e7a5b290ef20339952f1d904b33f8f'
|
||||
'943d35272b0aa7af2bf3818a0c9bd5fc'
|
||||
'4fb46ec290e497279c3dd7c8c528abf6')
|
||||
|
|
Loading…
Reference in a new issue