summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMihai Bişog2018-12-08 01:54:22 +0200
committerMihai Bişog2018-12-08 01:54:22 +0200
commit846b3216978a228045c323682e7c87460adcee58 (patch)
treebee0074d880a669fd42a1a335b8884036f6992db
downloadaur-846b3216978a228045c323682e7c87460adcee58.tar.gz
:sparkles: Initial commit for v3.15-1008
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD46
-rw-r--r--tsduck.install4
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bfdbb8d217c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = tsduck
+ pkgdesc = An extensible toolkit for MPEG/DVB transport streams
+ pkgver = 3.15_1008
+ pkgrel = 1
+ url = https://tsduck.io/
+ install = tsduck.install
+ arch = x86_64
+ license = BSD
+ makedepends = cppunit
+ depends = curl
+ depends = pcsclite
+ source = tsduck-3.15-1008.tar.gz::https://github.com/tsduck/tsduck/archive/v3.15-1008.tar.gz
+ md5sums = 65b05c93432b2274d38ea2ed65d0d388
+
+pkgname = tsduck
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dc36f71e6bb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Mihai Bişog <mihai.bisog@gmail.com>
+
+pkgname=tsduck
+_pkgver=3.15-1008
+pkgver=${_pkgver/-/_}
+pkgrel=1
+pkgdesc="An extensible toolkit for MPEG/DVB transport streams"
+arch=('x86_64')
+url="https://tsduck.io/"
+license=('BSD')
+depends=(curl pcsclite)
+makedepends=(cppunit)
+source=("$pkgname-${_pkgver}.tar.gz::https://github.com/tsduck/tsduck/archive/v${_pkgver}.tar.gz")
+md5sums=("65b05c93432b2274d38ea2ed65d0d388")
+install=$pkgname.install
+
+prepare() {
+ cd "$pkgname-${_pkgver}"
+ make unixify
+ make dtapi
+}
+
+build() {
+ cd "$pkgname-${_pkgver}"
+ make
+}
+
+check() {
+ cd "$pkgname-${_pkgver}"
+ make test
+}
+
+package() {
+ cd "$pkgname-${_pkgver}"
+
+ make SYSROOT="$pkgdir" install install-devel
+ install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"
+
+ local TSPLUGINS_PATH="/usr/lib/tsduck/plugins"
+ mkdir -p "$pkgdir/$TSPLUGINS_PATH"
+ find "$pkgdir/usr/bin" -type f -name 'tsplugin_*.so' -exec mv -t "$pkgdir/$TSPLUGINS_PATH" {} +
+
+ mkdir -p "$pkgdir/etc/profile.d/"
+ echo "export TSPLUGINS_PATH=/${TSPLUGINS_PATH}" > "$pkgdir/etc/profile.d/tsduck.sh"
+}
diff --git a/tsduck.install b/tsduck.install
new file mode 100644
index 00000000000..82fbef83e0c
--- /dev/null
+++ b/tsduck.install
@@ -0,0 +1,4 @@
+## arg 1: the new package version
+post_install() {
+ echo ">> You have to re-login or source /etc/profile.d/tsduck.sh or else things won't work."
+}