summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b29d228168878360d9b0a11e5edd752fd9a011a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
pkgname=chevereto
pkgver=1.1.0
pkgrel=1
pkgdesc="Chevereto is an image hosting script that allows you to create a beautiful and full-featured image hosting website on your own server."
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)

source=(https://github.com/Chevereto/Chevereto-Free/archive/${pkgver}.tar.gz
       chevereto.perm.sh)
md5sums=('694fa397ea504e8eb018c5b8392a7c84'
         'e7add39512c475948c6709a0a6a9c309')


pkgver() {
    curl -Is https://github.com/Chevereto/Chevereto-Free/releases/latest | awk -F'/' '/^Location/ {print $NF}' |  sed 's/[^[:print:]]//'

}



package() {

    mkdir -p "${pkgdir}/usr/share/webapps"
    cp -a Chevereto-Free-$pkgver "${pkgdir}/usr/share/webapps/chevereto"
    
    install -D -m755 "${srcdir}/chevereto.perm.sh" "${pkgdir}/usr/bin/set-chevereto-perm"
}