From 44c1b72697da99e5c49aa24b70631ea0411fd693 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 11 Nov 2017 04:02:53 +0000 Subject: [PATCH] added extra/libogg --- extra/libogg/PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++ extra/libogg/config_types.h | 9 +++++++ 2 files changed, 56 insertions(+) create mode 100644 extra/libogg/PKGBUILD create mode 100644 extra/libogg/config_types.h diff --git a/extra/libogg/PKGBUILD b/extra/libogg/PKGBUILD new file mode 100644 index 000000000..d3a3f85e8 --- /dev/null +++ b/extra/libogg/PKGBUILD @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Tom Gundersen +# Maintainer: Maxime Gauduin +# Contributor: John Proctor + +# ALARM: Kevin Mihelich +# - create correct config_types based on arch + +pkgname=libogg +pkgver=1.3.3 +pkgrel=1 +pkgdesc='Ogg bitstream and framing library' +arch=('x86_64') +url='http://www.xiph.org/ogg/' +license=('BSD') +depends=('glibc') +source=("https://downloads.xiph.org/releases/ogg/libogg-${pkgver}.tar.xz" + 'config_types.h') +md5sums=('87ed742047f065046eb6c36745d871b8' + 'a4d786b1b1955cb85b64fd16cbbee3f9') + +build() { + cd libogg-${pkgver} + + ./configure \ + --prefix='/usr' + make +} + +package() { + cd libogg-${pkgver} + + make DESTDIR="${pkgdir}" install + +# install BSD license + install -Dm 644 COPYING -t "${pkgdir}"/usr/share/licenses/libogg/ + +# Resolve multilib conflict + if [[ $CARCH == "aarch64" ]]; then + mv "${pkgdir}"/usr/include/ogg/config_types{,-64}.h + else + mv "${pkgdir}"/usr/include/ogg/config_types{,-32}.h + fi + install -m 644 ../config_types.h -t "${pkgdir}"/usr/include/ogg/ +} + +# vim: ts=2 sw=2 et: diff --git a/extra/libogg/config_types.h b/extra/libogg/config_types.h new file mode 100644 index 000000000..8297a7acb --- /dev/null +++ b/extra/libogg/config_types.h @@ -0,0 +1,9 @@ +#include + +#if __WORDSIZE == 32 +#include "config_types-32.h" +#elif __WORDSIZE == 64 +#include "config_types-64.h" +#else +#error "Unknown word size" +#endif