mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 09:52:15 +08:00
67 lines
2.0 KiB
Bash
67 lines
2.0 KiB
Bash
<<<<<<< HEAD
|
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
=======
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# contributor (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
>>>>>>> 600514ebcaaf80d91da28d7572f7905dbeed7b0a
|
|
|
|
_pkgbasename=libtheora
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.1.1
|
|
<<<<<<< HEAD
|
|
pkgrel=1
|
|
pkgdesc="An open video codec developed by the Xiph.org (32bit)"
|
|
arch=('x86_64')
|
|
depends=('libtheora' 'lib32-libogg')
|
|
makedepends=('gcc-multilib' 'lib32-libvorbis' 'lib32-libpng')
|
|
=======
|
|
pkgrel=3
|
|
pkgdesc="An open video codec developed by the Xiph.org (32bit)"
|
|
arch=('x86_64')
|
|
depends=('libtheora' 'lib32-libogg' $_pkgbasename=$pkgver)
|
|
makedepends=('gcc-multilib' 'lib32-libvorbis' 'lib32-libpng12')
|
|
>>>>>>> 600514ebcaaf80d91da28d7572f7905dbeed7b0a
|
|
url="http://www.xiph.org"
|
|
groups=lib32
|
|
license=('BSD' 'custom')
|
|
options=('!libtool')
|
|
source=(http://downloads.xiph.org/releases/theora/${_pkgbasename}-${pkgver}.tar.bz2)
|
|
md5sums=('292ab65cedd5021d6b7ddd117e07cd8e')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
|
|
# Hack preventing to use 64bit asembler optimisations, thanx to Rémy
|
|
sed -i -e "s/AC_DEFINE(\[OC_X86_64_ASM\]/#AC_DEFINE(\[OC_X86_64_ASM\]/" configure.ac
|
|
<<<<<<< HEAD
|
|
./autogen.sh
|
|
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
=======
|
|
./autogen.sh --prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
>>>>>>> 600514ebcaaf80d91da28d7572f7905dbeed7b0a
|
|
--enable-shared \
|
|
--disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
rm -rf "${pkgdir}/usr/"{include,share}
|
|
|
|
# link the licence
|
|
install -dm755 "${pkgdir}/usr/share/licenses/"
|
|
cd "${pkgdir}/usr/share/licenses/"
|
|
ln -s "${_pkgbasename}" "${pkgname}"
|
|
}
|