41 lines
958 B
Bash
41 lines
958 B
Bash
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
|
|
pkgname=dwelling-radio
|
|
pkgver=23.10.1
|
|
pkgrel=1
|
|
pkgdesc="Arav's dwelling / Radio"
|
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
|
url="https://git.arav.su/Arav/dwelling-radio"
|
|
license=('MIT')
|
|
groups=()
|
|
depends=()
|
|
makedepends=('go>=1.17')
|
|
optdepends=(
|
|
'tree: to make a filelist html file'
|
|
'ffmpeg: to convert media to ogg')
|
|
provides=('dwelling-radio')
|
|
conflicts=('dwelling-radio')
|
|
replaces=()
|
|
backup=('etc/dwelling/radio.yaml' 'etc/dwelling/radio.vars.liq')
|
|
options=()
|
|
install=
|
|
source=('https://git.arav.su/Arav/dwelling-radio/archive/23.10.1.tar.gz')
|
|
noextract=()
|
|
md5sums=('SKIP')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname"
|
|
|
|
export GOPATH="$pkgdir"/gopath
|
|
|
|
if [ ! -f "$(go env GOPATH)/bin/jade" ]; then
|
|
make DESTDIR="$pkgdir" install-jade
|
|
fi
|
|
|
|
make DESTDIR="$pkgdir" PREFIX="/usr"
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname"
|
|
make DESTDIR="$pkgdir" PREFIX="/usr" install
|
|
}
|