summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD42
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..db5a0e5468d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = svt-hevc-git
+ pkgdesc = The Scalable Video Technology for HEVC Encoder (SVT-HEVC Encoder) is an HEVC-compliant encoder library core.
+ pkgver = r111.54cb2f4
+ pkgrel = 1
+ url = https://github.com/OpenVisualCloud/SVT-HEVC
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = cmake
+ makedepends = gcc
+ makedepends = yasm
+ makedepends = git
+ provides = svt-hevc
+ replaces = svt-hevc
+ source = svt-hevc::git+https://github.com/OpenVisualCloud/SVT-HEVC.git
+ md5sums = SKIP
+
+pkgname = svt-hevc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1185605a1a7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Luis Garcia <luigi311.lg@gmail.com>
+pkgname=svt-hevc-git
+pkgver=r111.54cb2f4
+pkgrel=1
+pkgdesc="The Scalable Video Technology for HEVC Encoder (SVT-HEVC Encoder) is an HEVC-compliant encoder library core."
+arch=('x86_64' 'i686')
+url="https://github.com/OpenVisualCloud/SVT-HEVC"
+license=('GPL')
+groups=()
+depends=()
+makedepends=('cmake' 'gcc' 'yasm' 'git')
+checkdepends=()
+optdepends=()
+provides=('svt-hevc')
+conflicts=()
+replaces=('svt-hevc')
+backup=()
+options=()
+install=
+changelog=
+source=(svt-hevc::git+https://github.com/OpenVisualCloud/SVT-HEVC.git)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ mkdir -p build
+ cd build
+ cmake .. -DCMAKE_BUILD_TYPE='Release' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DBUILD_TESTING=False
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"/build
+ make DESTDIR="$pkgdir/" install
+}