summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD37
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..acb1d608e94
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = xvc-git
+ pkgdesc = Modern software-defined video compression format
+ pkgver = v1.0.r7.3e1db91
+ pkgrel = 1
+ url = https://xvc.io/
+ arch = x86_64
+ license = custom
+ makedepends = git
+ makedepends = cmake
+ depends = gcc-libs
+ provides = xvc
+ conflicts = xvc
+ source = git+https://github.com/divideon/xvc.git
+ sha512sums = SKIP
+
+pkgname = xvc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..865884dccc6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: spider-mario <spidermario@free.fr>
+pkgname=xvc-git
+pkgver=v1.0.r7.3e1db91
+pkgrel=1
+pkgdesc="Modern software-defined video compression format"
+arch=('x86_64')
+url="https://xvc.io/"
+license=('custom')
+depends=('gcc-libs')
+makedepends=('git' 'cmake')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/divideon/xvc.git')
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir"/xvc
+ printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+build() {
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir"/xvc
+ make
+}
+
+check() {
+ cd build
+ make test
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 "$srcdir"/xvc/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}