summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorb6b2020-03-22 20:20:14 -0700
committerb6b2020-03-22 20:20:14 -0700
commitb4f0966c6dc5557db8e71ce686b8378d660bc6d2 (patch)
treeddcb79df1c30f715690c9abb48f2a557a9fb7db8
parentccf95438da1be33cceaa3cdcd6f9660a738e0b07 (diff)
downloadaur-b4f0966c6dc5557db8e71ce686b8378d660bc6d2.tar.gz
Prepare with branch name to generate X264_VERSION/X264_POINTER correctly
-rw-r--r--PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 498fc847da7..ebfb7bea0bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,12 @@
# Maintainer: b6b <b6bb at pm dot me>
pkgname=x264-tmod-git
+_branch=t_mod_New
pkgver=159.r3044.gb09a90f3
-pkgrel=1
+pkgrel=2
pkgdesc='Open Source H264/AVC video encoder (tmod git version)'
arch=(x86_64)
-url=https://github.com/jpsdr/x264/tree/t_mod_New
+url=https://github.com/jpsdr/x264/tree/"${_branch}"
license=(GPL)
depends=(
liblsmash.so
@@ -31,7 +32,7 @@ conflicts=(
libx264-all
)
source=(
- git+https://github.com/jpsdr/x264.git#branch=t_mod_New
+ git+https://github.com/jpsdr/x264.git#branch="${_branch}"
https://gist.githubusercontent.com/b6b/27246e5c217561465301dde13965d36a/raw/9147b91d4c5f2ba97c0289cff54349cae5134a48/fix-log-level-declaration.patch
)
sha256sums=(
@@ -42,6 +43,7 @@ sha256sums=(
prepare() {
cd x264
+ git checkout -b "$_branch" # to build with correct X264_VERSION/X264_POINTER
patch -i "${srcdir}"/fix-log-level-declaration.patch
}