user/wallabag: match to MR
This commit is contained in:
parent
b8b6f0e364
commit
6794ae256b
1 changed files with 34 additions and 41 deletions
|
@ -1,51 +1,44 @@
|
||||||
# Maintainer: Antoine Martin <antoine@ayakael.net>
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
# Based on PKGBUILD by the following:
|
|
||||||
# Philipp Schmitt (philipp<at>schmitt<dot>com
|
|
||||||
|
|
||||||
pkgname=wallabag
|
pkgname=wallabag
|
||||||
pkgver=2.4.2
|
pkgver=2.5.1
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc='Self hostable application for saving web pages'
|
pkgdesc="Self hostable application for saving web pages"
|
||||||
arch='noarch'
|
arch="noarch"
|
||||||
url='http://www.wallabag.org/'
|
url="http://www.wallabag.org/"
|
||||||
license='MIT'
|
license="MIT"
|
||||||
depends='php7 php7-gd php7-tidy pcre php7-tokenizer php7-bcmath php7-dom php7-curl php7-session php7-ctype php7-simplexml php7-xml php7-sockets php7-xmlreader composer php7-intl'
|
_php=php81
|
||||||
|
_php_mods="-gd -tidy -tokenizer -bcmath -dom -curl -session -ctype -simplexml
|
||||||
|
-xml -sockets -xmlreader -intl"
|
||||||
|
depends="$_php ${_php_mods//-/$_php-} pcre composer"
|
||||||
options='!strip'
|
options='!strip'
|
||||||
source="https://static.wallabag.org/releases/wallabag-release-${pkgver}.tar.gz"
|
source="https://static.wallabag.org/releases/wallabag-release-$pkgver.tar.gz"
|
||||||
builddir="${srcdir}/${pkgver}"
|
options="!check" # No testsuote
|
||||||
options="!check"
|
pkgusers="wallabag"
|
||||||
|
pkggroups="www-data"
|
||||||
_USER=nginx
|
|
||||||
_GROUP=nginx
|
|
||||||
|
|
||||||
build() {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${builddir}"
|
local datadir="/var/lib/$pkgname"
|
||||||
|
local wwwdir="/usr/share/webapps/$pkgname"
|
||||||
|
local confdir="/etc/$pkgname"
|
||||||
|
|
||||||
# Make directories
|
# Make directories
|
||||||
mkdir -p "${pkgdir}/usr/share/webapps/${pkgname}" "${pkgdir}/var/lib/${pkgname}" "${pkgdir}/etc/${pkgname}"
|
install -dm 755 "$pkgdir"/$datadir "$pkgdir"/$wwwdir "$pkgdir"/$confdir
|
||||||
|
|
||||||
# Copy operations
|
# Copy operations
|
||||||
cp . -R "${pkgdir}/usr/share/webapps/${pkgname}"
|
cp $builddir/* -R "$pkgdir"/usr/share/webapps/$pkgname/.
|
||||||
mv "${pkgdir}/usr/share/webapps/${pkgname}/app/config/parameters.yml" "${pkgdir}/etc/${pkgname}/"
|
mv "$pkgdir"/$wwwdir/app/config/parameters.yml "$pkgdir"/$confdir/
|
||||||
mv "${pkgdir}/usr/share/webapps/${pkgname}/var" "${pkgdir}/var/lib/${pkgname}/"
|
mv "$pkgdir"/$wwwdir/var "$pkgdir"/$datadir/
|
||||||
mv "${pkgdir}/usr/share/webapps/${pkgname}/data" "${pkgdir}/var/lib/${pkgname}/"
|
mv "$pkgdir"/$wwwdir/data "$pkgdir"/$datadir/
|
||||||
|
|
||||||
# Link operations
|
# Link operations
|
||||||
ln -s "/etc/${pkgname}/parameters.yml" "${pkgdir}/usr/share/webapps/${pkgname}/app/config/parameters.yml"
|
ln -s "/etc/$pkgname/parameters.yml" "$pkgdir/$wwwdir/app/config/parameters.yml"
|
||||||
ln -s "/var/lib/${pkgname}/var" "${pkgdir}/usr/share/webapps/${pkgname}/"
|
ln -s "/var/lib/$pkgname/var" "$pkgdir/$wwwdir/"
|
||||||
ln -s "/var/lib/${pkgname}/data" "${pkgdir}/usr/share/webapps/${pkgname}/"
|
ln -s "/var/lib/$pkgname/data" "$pkgdir/$wwwdir/"
|
||||||
|
|
||||||
# Chown operartions
|
|
||||||
chown -R ${_USER}:${_GROUP} "${pkgdir}/etc/${pkgname}"
|
|
||||||
chown -R ${_USER}:${_GROUP} "${pkgdir}/var/lib/${pkgname}"
|
|
||||||
chown -R ${_USER}:${_GROUP} "${pkgdir}/usr/share/webapps/${pkgname}"
|
|
||||||
|
|
||||||
sed -i "${pkgdir}/var/lib/${pkgname}/var/bootstrap.php.cache" -e "s@__DIR__.'/../@'/usr/share/webapps/${pkgname}/@"
|
|
||||||
|
|
||||||
|
sed -i "$pkgdir"/$datadir/var/bootstrap.php.cache -e "s@__DIR__.'/../@'/usr/share/webapps/$pkgname/@"
|
||||||
}
|
}
|
||||||
sha512sums="641a7e99aadace2e820cd3083555520f4f17a7ac16a6f98136501050be228e83da19466420e14f0850025fd7ff9749e6d3e9a7bc9679c6ecd3c5e0ae49cfdb15 wallabag-release-2.4.2.tar.gz"
|
sha512sums="
|
||||||
|
8e6319adb2074f8d151c54d37667eb0fc86525394f220b9f44c9fd921e90d1918295a6887411fe4abbc34e53ceece029fde489b11272fa1ee04c8be1ab133b4f wallabag-release-2.5.1.tar.gz
|
||||||
|
"
|
||||||
|
|
Loading…
Reference in a new issue