summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4f88f9deaa8f37ef1b65be38056f6b96adcdbc0 (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
# Maintainer: Marcel Unbehaun <f.rostze.ux at gmail dot com>
# Contributor: Gleb Sinyavskiy <zhulik.gleb@gmail.com>
pkgname=neolink
pkgver=0.6.2
pkgrel=4
pkgdesc="An RTSP bridge to Reolink IP cameras."
arch=('x86_64')
url="https://github.com/QuantumEntangledAndy/${pkgname}"
license=('AGPL3')
depends=('gst-rtsp-server' 'gst-plugins-bad' 'gst-plugins-base' 'gst-plugins-good')
makedepends=('git' 'rust')
conflicts=("${pkgname}-git")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/QuantumEntangledAndy/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
				"${pkgname}.sysusers"
				"${pkgname}.service")

backup=("etc/${pkgname}.toml")

build() {
	cd "${pkgname}-${pkgver}"
	cargo build --release --workspace
}

package() {
	install -Dm755 "${pkgname}-${pkgver}/target/release/${pkgname}" "$pkgdir/usr/bin/${pkgname}"
	install -Dm644 "${pkgname}-${pkgver}/sample_config.toml" "$pkgdir/etc/${pkgname}.toml"
	install -Dm 644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
	install -Dm 644 "${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system"
}
sha256sums=('7481d36de904ea6ee3881652f5ad490532ad6c3629e76780bba007c959abd792'
            '27d0ecc90731e703228efd1c922421cab01c6495943b6f07a97a8c20518c8a17'
            'c44fab36cad34172c794eea36e9bdc403f987246d8450223361ae4ab2286f097')