diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 42 | ||||
-rw-r--r-- | systemd.service | 11 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a58ee0423555 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = lightspeed-ingest-git + pkgdesc = A FTL handshake server written in Rust + pkgver = r164.af28eff + pkgrel = 1 + url = https://github.com/GRVYDEV/Lightspeed-ingest + arch = x86_64 + license = custom:MIT + makedepends = rust + makedepends = git + makedepends = gcc + depends = gcc-libs + optdepends = lightspeed-webrtc: Translate Stream to WebRTC + provides = lightspeed-ingest + conflicts = lightspeed-ingest + source = lightspeed-ingest-git::git+https://github.com/GRVYDEV/Lightspeed-ingest.git + source = systemd.service + sha512sums = SKIP + sha512sums = d0b32093ea65ab018aab9d4952355a6684de38285e3bb7e380d25f2266128efee09959685b2c7496237741cb52c6147c03a091843afbc41f7b485e247cb70f35 + +pkgname = lightspeed-ingest-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..421575386bd3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Sefa Eyeoglu <contact@scrumplex.net> + +pkgname=lightspeed-ingest-git +pkgver=r164.af28eff +pkgrel=1 +pkgdesc="A FTL handshake server written in Rust" +arch=(x86_64) +url="https://github.com/GRVYDEV/Lightspeed-ingest" +license=("custom:MIT") +depends=("gcc-libs") +optdepends=("lightspeed-webrtc: Translate Stream to WebRTC") +makedepends=("rust" "git" "gcc") +provides=("lightspeed-ingest") +conflicts=("lightspeed-ingest") +source=("${pkgname}::git+https://github.com/GRVYDEV/Lightspeed-ingest.git" + "systemd.service") +sha512sums=('SKIP' + 'd0b32093ea65ab018aab9d4952355a6684de38285e3bb7e380d25f2266128efee09959685b2c7496237741cb52c6147c03a091843afbc41f7b485e247cb70f35') + + +pkgver() { + cd "$pkgname" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$pkgname" + + cargo build --release --locked +} + +package() { + cd "$pkgname" + + install -Dm755 "target/release/lightspeed-ingest" "${pkgdir}/usr/bin/lightspeed-ingest" + + install -Dm755 "../systemd.service" "${pkgdir}/usr/lib/systemd/system/lightspeed-ingest.service" + + install -Dm644 "README.md" "${pkgdir}/usr/share/doc/lightspeed-ingest/README.md" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/systemd.service b/systemd.service new file mode 100644 index 000000000000..47e1f435671b --- /dev/null +++ b/systemd.service @@ -0,0 +1,11 @@ +[Unit] +Description=lightspeed-ingest Server + +[Service] +ExecStart=/usr/bin/lightspeed-ingest +Restart=on-failure +RestartSec=3 + +[Install] +WantedBy=multi-user.target + |