1
0
dwelling-radio/build/archlinux/PKGBUILD

31 lines
912 B
Bash
Raw Permalink Normal View History

2023-02-23 17:49:01 +04:00
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
pkgname=dwelling-radio
2024-09-17 04:05:17 +04:00
pkgver=24.38.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')
makedepends=('go>=1.17')
optdepends=(
'tree: to make a filelist html file'
'ffmpeg: to convert media to ogg and get duration of songs')
backup=('etc/dwelling/ezstream.xml')
source=("${pkgver}.tar.gz::https://git.arav.su/Arav/dwelling-radio/archive/v${pkgver}.tar.gz")
2022-03-08 01:17:24 +04:00
md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
2023-03-13 04:43:14 +04:00
export GOPATH="$srcdir"/gopath
2023-08-06 03:17:48 +04:00
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr"
2022-03-08 01:17:24 +04:00
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" PREFIX="/usr" install
2022-03-30 18:50:12 +04:00
}