# Maintainer: AlphaJack pkgname="shlink" pkgver=2.6.1 pkgrel=1 pkgdesc="The definitive self-hosted URL shortener" url="https://shlink.io" license=("MIT") arch=("any") depends=("php>=8.0" "php-gd") optdepends=("mariadb: database" "mssql-server: database" "mysql: database" "postgresql: database" "sqlite: database" "apache: web server" "nginx: web server") source=("https://github.com/shlinkio/shlink/releases/download/v$pkgver/$pkgname${pkgver}_php8.0_dist.zip") sha256sums=("b96d38b7bc6e033b94dacfd56ed5f672dc9aa2420d5496d4d5fb008d85d89d65") install="$pkgname.install" options=("!strip") package(){ cd "$pkgname${pkgver}_php8.0_dist" install -d "$pkgdir/usr/share/webapps/$pkgname" cp -r * "$pkgdir/usr/share/webapps/$pkgname" install -d "data" "$pkgdir/usr/share/webapps/$pkgname/data" chown -R http: "$pkgdir/usr/share/webapps/$pkgname/data" install -d -o http -g http -m 750 "config/params" "$pkgdir/usr/share/webapps/$pkgname/config/params" install -D -d -o http -g http -m 750 "$pkgdir/var/log/$pkgname" rm -r "$pkgdir/usr/share/webapps/$pkgname/data/log" ln -s "/var/log/$pkgname" "$pkgdir/usr/share/webapps/$pkgname/data/log" }