commit 57a88eb3512441c48a7cbde0208f8d67d09fd344 Author: xhaa123 Date: Wed Oct 23 20:01:46 2024 +0800 libtheora 1.1.1-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..5bc3495 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=libtheora +pkgver=1.1.1 +pkgrel=1 +pkgdesc="Standard encoder and decoder library for the Theora video compression format" +arch=('x86_64') +url="https://www.theora.org/" +license=('BSD-3-Clause') +depends=('glibc' 'libogg') +makedepends=('libpng' 'libvorbis' 'sdl12-compat' 'git') +source=(git+https://github.com/xiph/theora.git#tag=v${pkgver}) +sha256sums=(SKIP) + +prepare() { + cd theora + + # Fix for autoreconf + git cherry-pick -n 28cc6dbd9b2a141df94f60993256a5fca368fa54 + + # Fix build with libpng 1.6 + git cherry-pick -n 7288b539c52e99168488dc3a343845c9365617c8 + + autoreconf -fi +} + +build() { + cd theora + + ${CONFIGURE} --enable-shared --disable-static + + make +} + +package() { + cd theora + + make DESTDIR=${pkgdir} install +}