mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added extra/libogg
This commit is contained in:
parent
e3502682a8
commit
44c1b72697
2 changed files with 56 additions and 0 deletions
47
extra/libogg/PKGBUILD
Normal file
47
extra/libogg/PKGBUILD
Normal file
|
@ -0,0 +1,47 @@
|
|||
# $Id$
|
||||
# Maintainer: Tom Gundersen <teg@jklm.no>
|
||||
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
||||
# Contributor: John Proctor <jproctor@prium.net>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - 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:
|
9
extra/libogg/config_types.h
Normal file
9
extra/libogg/config_types.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <bits/wordsize.h>
|
||||
|
||||
#if __WORDSIZE == 32
|
||||
#include "config_types-32.h"
|
||||
#elif __WORDSIZE == 64
|
||||
#include "config_types-64.h"
|
||||
#else
|
||||
#error "Unknown word size"
|
||||
#endif
|
Loading…
Reference in a new issue