[arch-commits] Commit in libtheora/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue May 19 09:06:01 UTC 2020
Date: Tuesday, May 19, 2020 @ 09:06:01
Author: foutrelis
Revision: 386516
archrelease: copy trunk to staging-x86_64
Added:
libtheora/repos/staging-x86_64/
libtheora/repos/staging-x86_64/PKGBUILD
(from rev 386515, libtheora/trunk/PKGBUILD)
libtheora/repos/staging-x86_64/libtheora-1.1.1-libpng16.patch
(from rev 386515, libtheora/trunk/libtheora-1.1.1-libpng16.patch)
--------------------------------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
libtheora-1.1.1-libpng16.patch | 17 +++++++++++++++++
2 files changed, 52 insertions(+)
Copied: libtheora/repos/staging-x86_64/PKGBUILD (from rev 386515, libtheora/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-19 09:06:01 UTC (rev 386516)
@@ -0,0 +1,35 @@
+# Maintainer: Tom Killian <tom at archlinux.org>
+# Committer: dorphell <dorphell at archlinux.org>
+
+pkgname=libtheora
+pkgver=1.1.1
+pkgrel=5
+pkgdesc="An open video codec developed by the Xiph.org"
+arch=('x86_64')
+url="https://www.theora.org/"
+license=('BSD')
+depends=('libogg')
+makedepends=('libvorbis')
+source=(https://downloads.xiph.org/releases/theora/libtheora-${pkgver}.tar.bz2
+ libtheora-1.1.1-libpng16.patch)
+sha256sums=('b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc'
+ 'e4c9a8dc798c596ed32a2a720020ae27a0e72f5add1a47cb8fadebe0e7180d7e')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -Np0 -i ../libtheora-1.1.1-libpng16.patch
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ ./configure --prefix=/usr --enable-shared --disable-static
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 LICENSE COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
Copied: libtheora/repos/staging-x86_64/libtheora-1.1.1-libpng16.patch (from rev 386515, libtheora/trunk/libtheora-1.1.1-libpng16.patch)
===================================================================
--- staging-x86_64/libtheora-1.1.1-libpng16.patch (rev 0)
+++ staging-x86_64/libtheora-1.1.1-libpng16.patch 2020-05-19 09:06:01 UTC (rev 386516)
@@ -0,0 +1,17 @@
+http://bugs.gentoo.org/465450
+http://trac.xiph.org/ticket/1947
+
+--- examples/png2theora.c
++++ examples/png2theora.c
+@@ -462,9 +462,9 @@
+ png_set_strip_alpha(png_ptr);
+
+ row_data = (png_bytep)png_malloc(png_ptr,
+- 3*height*width*png_sizeof(*row_data));
++ 3*height*width*sizeof(*row_data));
+ row_pointers = (png_bytep *)png_malloc(png_ptr,
+- height*png_sizeof(*row_pointers));
++ height*sizeof(*row_pointers));
+ for(y = 0; y < height; y++) {
+ row_pointers[y] = row_data + y*(3*width);
+ }
More information about the arch-commits
mailing list