44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=wallabag
|
|
pkgver=2.5.2
|
|
pkgrel=0
|
|
pkgdesc="Self hostable application for saving web pages"
|
|
arch="noarch"
|
|
url="http://www.wallabag.org/"
|
|
license="MIT"
|
|
_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'
|
|
source="https://static.wallabag.org/releases/wallabag-release-$pkgver.tar.gz"
|
|
options="!check" # No testsuote
|
|
pkgusers="wallabag"
|
|
pkggroups="www-data"
|
|
|
|
package() {
|
|
local datadir="/var/lib/$pkgname"
|
|
local wwwdir="/usr/share/webapps/$pkgname"
|
|
local confdir="/etc/$pkgname"
|
|
|
|
# Make directories
|
|
install -dm 755 "$pkgdir"/$datadir "$pkgdir"/$wwwdir "$pkgdir"/$confdir
|
|
|
|
# Copy operations
|
|
cp $builddir/* -R "$pkgdir"/usr/share/webapps/$pkgname/.
|
|
mv "$pkgdir"/$wwwdir/app/config/parameters.yml "$pkgdir"/$confdir/
|
|
mv "$pkgdir"/$wwwdir/var "$pkgdir"/$datadir/
|
|
mv "$pkgdir"/$wwwdir/data "$pkgdir"/$datadir/
|
|
|
|
# Link operations
|
|
ln -s "/etc/$pkgname/parameters.yml" "$pkgdir/$wwwdir/app/config/parameters.yml"
|
|
ln -s "/var/lib/$pkgname/var" "$pkgdir/$wwwdir/"
|
|
ln -s "/var/lib/$pkgname/data" "$pkgdir/$wwwdir/"
|
|
|
|
sed -i "$pkgdir"/$datadir/var/bootstrap.php.cache -e "s@__DIR__.'/../@'/usr/share/webapps/$pkgname/@"
|
|
}
|
|
sha512sums="
|
|
636af28db0135ec2c04bd5f172fc93e00a9d3985ccaf48bc41bddbe0210a61baedaa326bcf46ee506a065d34ab41b3b2b2767ff987bfe33b7f1787d867f94c87 wallabag-release-2.5.2.tar.gz
|
|
"
|