summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD7
2 files changed, 8 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a6fe4e381ba6..4ad8659a9577 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,6 +9,7 @@ pkgbase = chevereto
depends = php
depends = php-gd
depends = mariadb
+ optdepends = php-apache: to use the Apache web server
options = emptydirs
source = https://github.com/Chevereto/Chevereto-Free/archive/1.1.0.tar.gz
source = chevereto.perm.sh
diff --git a/PKGBUILD b/PKGBUILD
index 295c89e5277c..b29d22816887 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,6 +5,7 @@ pkgdesc="Chevereto is an image hosting script that allows you to create a beauti
arch=(any)
url="https://chevereto.com/free"
license=("AGPL")
+optdepends=('php-apache: to use the Apache web server')
depends=("php" "php-gd" "mariadb")
install=chevereto.install
options=(emptydirs)
@@ -15,6 +16,12 @@ md5sums=('694fa397ea504e8eb018c5b8392a7c84'
'e7add39512c475948c6709a0a6a9c309')
+pkgver() {
+ curl -Is https://github.com/Chevereto/Chevereto-Free/releases/latest | awk -F'/' '/^Location/ {print $NF}' | sed 's/[^[:print:]]//'
+
+}
+
+
package() {