2023-02-23 17:49:01 +04:00
|
|
|
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
|
2022-08-24 21:29:10 +04:00
|
|
|
pkgname=dwelling-radio
|
2023-05-02 17:48:05 +04:00
|
|
|
pkgver=23.17.0
|
2022-03-08 01:17:24 +04:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Arav's dwelling / Radio"
|
|
|
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
2023-02-23 17:49:01 +04:00
|
|
|
url="https://git.arav.su/Arav/dwelling-radio"
|
2022-03-08 01:17:24 +04:00
|
|
|
license=('MIT')
|
2022-03-09 23:11:32 +04:00
|
|
|
groups=()
|
|
|
|
depends=()
|
2023-03-13 03:18:00 +04:00
|
|
|
makedepends=('go>=1.17')
|
2023-03-12 01:28:34 +04:00
|
|
|
optdepends=(
|
|
|
|
'tree: to make a filelist html file'
|
|
|
|
'ffmpeg: to convert media to ogg')
|
2022-03-30 18:50:12 +04:00
|
|
|
provides=('dwelling-radio')
|
|
|
|
conflicts=('dwelling-radio')
|
2022-03-09 23:11:32 +04:00
|
|
|
replaces=()
|
2022-08-29 07:17:04 +04:00
|
|
|
backup=('etc/dwelling/radio.yaml' 'etc/dwelling/radio.vars.liq')
|
2022-03-09 23:11:32 +04:00
|
|
|
options=()
|
2022-08-30 02:35:30 +04:00
|
|
|
install=
|
2023-05-02 17:36:04 +04:00
|
|
|
source=("${pkgver}.tar.gz::https://git.arav.su/Arav/dwelling-radio/archive/v${pkgver}.tar.gz")
|
2022-03-09 23:11:32 +04:00
|
|
|
noextract=()
|
2022-03-08 01:17:24 +04:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname"
|
2023-03-13 03:18:00 +04:00
|
|
|
|
2023-03-13 04:43:14 +04:00
|
|
|
export GOPATH="$srcdir"/gopath
|
2023-03-13 03:18:00 +04:00
|
|
|
|
2023-02-19 22:08:55 +04:00
|
|
|
if [ ! -f "$(go env GOPATH)/bin/jade" ]; then
|
2023-03-13 03:18:00 +04:00
|
|
|
make DESTDIR="$pkgdir" install-jade
|
2023-02-19 22:08:55 +04:00
|
|
|
fi
|
2023-03-13 03:18:00 +04:00
|
|
|
|
2023-05-02 17:36:04 +04:00
|
|
|
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr"
|
2022-03-08 01:17:24 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname"
|
2023-05-02 17:36:04 +04:00
|
|
|
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" install
|
2022-03-30 18:50:12 +04:00
|
|
|
}
|