blob: 7a32122a53dffdc11ad03b8e009e361818a2efd8 (
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
33
34
35
|
# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com>
# Maintainer: xeruf <27f at pm dot me>
# Contributor: Jonas Heinrich <onny@project-insanity.org>
# Contributor: Alex Smith <azphreal19@protonmail.com
pkgname=koel
pkgver=5.1.14
pkgrel=1
pkgdesc="A personal music streaming server that works."
arch=('any')
url="https://koel.dev/"
license=('MIT')
depends=(php php-sqlite python3 mysql openssl)
makedepends=(composer nodejs yarn)
backup=('usr/share/webapps/koel/.env')
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('a9a3be4ad9aa4641577f46d341d2363d7b420a3d9a7f8a962ea8cd8c4313f32bbe1adf87c35778550535714f39d599482ff1cb60cc363adef12b0cfac159350c')
prepare() {
cp "${srcdir}/${pkgname}-${pkgver}"/.env{.example,}
sed -i 's|FFMPEG_PATH=/usr/local/bin/ffmpeg|FFMPEG_PATH=/usr/bin/ffmepg|g' "${srcdir}/${pkgname}-${pkgver}/.env.example"
}
build() {
cd "$pkgname-$pkgver"
echo "++ ENABLE THE FOLLOWING MODULES IN /etc/php/php.ini: pdo_sqlite, sqlite3, exif"
php -d 'extension=pdo_sqlite' -d 'extension=sqlite3' -d 'extension=exif' /usr/bin/composer install
}
package() {
mkdir -p "${pkgdir}/usr/share/webapps"
cp -r "${pkgname}-${pkgver}" "${pkgdir}/usr/share/webapps/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|