32 lines
924 B
Bash
32 lines
924 B
Bash
# Template file for 'miniflux'
|
|
pkgname=miniflux
|
|
version=1.1.9
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc=$pkgname
|
|
conf_files="/usr/share/webapps/${pkgname}/config.php"
|
|
system_accounts="${pkgname}"
|
|
miniflux_homedir="/var/lib/${pkgname}"
|
|
make_dirs="/var/lib/${pkgname} 2770 ${pkgname} ${pkgname}"
|
|
hostmakedepends="unzip"
|
|
depends="php-sqlite"
|
|
short_desc="A minimalist web-based RSS reader"
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
|
license="AGPL-3"
|
|
homepage="http://miniflux.net"
|
|
distfiles="${homepage}/${pkgname}-${version}.zip"
|
|
checksum=fad42283c3d9e4375f2ba07153f45e3dc7d378ee54537d9c225e1e048e3520a4
|
|
|
|
do_install() {
|
|
local dest=usr/share/webapps/${pkgname}
|
|
|
|
vmkdir $dest
|
|
vcopy ./* $dest
|
|
|
|
sed -e "s|\('DATA_DIRECTORY',\).*)|\1 '/var/lib/${pkgname}')|" \
|
|
-e "s|\('DEBUG',\).*)|\1 false)|" \
|
|
-e "s|\('ENABLE_AUTO_UPDATE',\).*)|\1 false)|" \
|
|
config.default.php > ${DESTDIR}/${dest}/config.php
|
|
|
|
rm ${DESTDIR}/$dest/LICENSE
|
|
}
|