diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..70b983fbebf3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = sonobus-git + pkgdesc = An easy to use application for streaming high-quality, low-latency peer-to-peer audio, Git version + pkgver = 1.4.5.r0.g52cb09f + pkgrel = 1 + url = https://sonobus.net + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = cmake + depends = opus + depends = freetype2 + depends = libxrandr + depends = libxinerama + depends = libxcursor + depends = libasound.so=2-64 + depends = libjack.so=0-64 + source = git+https://github.com/sonosaurus/sonobus.git + sha512sums = SKIP + +pkgname = sonobus-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..93b4fc3f40db --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Liang Wei <weiliang1503@163.com> + +pkgname=sonobus-git +pkgver=1.4.5.r0.g52cb09f +pkgrel=1 +pkgdesc="An easy to use application for streaming high-quality, low-latency peer-to-peer audio, Git version" +arch=('i686' 'x86_64') +url="https://sonobus.net" +license=('GPL3') +depends=('opus' 'freetype2' 'libxrandr' 'libxinerama' 'libxcursor' 'libasound.so=2-64' 'libjack.so=0-64') +makedepends=('cmake') +source=("git+https://github.com/sonosaurus/sonobus.git") +sha512sums=('SKIP') + +pkgver() { + cd sonobus + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd sonobus + + cmake -B build \ + -DCMAKE_BUILD_TYPE='Release' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -Wno-dev + make -C build -j$(nproc) +} + +package() { + cd "sonobus/linux" + + install -d "$pkgdir/usr" + + ./install.sh "$pkgdir/usr" +} |