summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorb6b2020-01-23 22:33:03 -0800
committerb6b2020-01-23 22:33:03 -0800
commit1c3ea0641e77bb26966d8acb2498ed5106f6d254 (patch)
treec66feaaaca4e718ff2176e7060ed93269846360a
downloadaur-1c3ea0641e77bb26966d8acb2498ed5106f6d254.tar.gz
Initial commit
-rw-r--r--.SRCINFO33
-rw-r--r--PKGBUILD70
2 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9daf5a6984b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+pkgbase = x264-tmod-git
+ pkgdesc = Open Source H264/AVC video encoder (tmod git version)
+ pkgver = 159.r3041.ce3db240
+ pkgrel = 1
+ url = https://github.com/jpsdr/x264/tree/t_mod_New
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = nasm
+ makedepends = ffmpeg
+ makedepends = l-smash-x264-tmod-git
+ depends = libavcodec.so
+ depends = libavformat.so
+ depends = libavutil.so
+ depends = liblsmash.so
+ depends = libswscale.so
+ provides = x264
+ provides = libx264
+ provides = libx264-git
+ provides = libx264.so
+ conflicts = x264
+ conflicts = x264-git
+ conflicts = libx264
+ conflicts = libx264-10bit
+ conflicts = libx264-all
+ replaces = libx264-git
+ replaces = libx264-10bit-git
+ replaces = libx264-all-git
+ source = git+https://github.com/jpsdr/x264.git#branch=t_mod_New
+ sha256sums = SKIP
+
+pkgname = x264-tmod-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ce29dd39432
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: b6b <b6bb at pm dot me>
+
+pkgname=x264-tmod-git
+pkgver=159.r3041.ce3db240
+pkgrel=1
+arch=('x86_64')
+pkgdesc='Open Source H264/AVC video encoder (tmod git version)'
+url='https://github.com/jpsdr/x264/tree/t_mod_New'
+license=('GPL')
+depends=(
+ 'libavcodec.so'
+ 'libavformat.so'
+ 'libavutil.so'
+ 'liblsmash.so'
+ 'libswscale.so'
+)
+makedepends=(
+ 'git'
+ 'nasm'
+ 'ffmpeg'
+ 'l-smash-x264-tmod-git'
+)
+provides=(
+ 'x264'
+ 'libx264'
+ 'libx264-git'
+ 'libx264.so'
+)
+conflicts=(
+ 'x264'
+ 'x264-git'
+ 'libx264'
+ 'libx264-10bit'
+ 'libx264-all'
+)
+replaces=(
+ 'libx264-git'
+ 'libx264-10bit-git'
+ 'libx264-all-git'
+)
+source=('git+https://github.com/jpsdr/x264.git#branch=t_mod_New')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd x264
+
+ printf "%s.r%s.%s" "$(grep "#define X264_BUILD" x264.h | cut -d " " -f3)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd x264
+
+ ./configure \
+ --prefix='/usr' \
+ --enable-shared \
+ --enable-lto \
+ --enable-pic \
+ --disable-gpac \
+ --disable-avs \
+ --disable-audio
+
+ make
+}
+
+package() {
+ cd x264
+
+ make DESTDIR="$pkgdir" install
+ install -Dm755 x264 "$pkgdir/usr/bin/x264"
+}