mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
24 lines
830 B
Bash
24 lines
830 B
Bash
# $Id: PKGBUILD 1215 2009-08-14 01:36:52Z dgriffiths $
|
|
# Maintainer: Bjorn Lindeijer <bjorn lindeijer nl>
|
|
# Maintainer: Mateusz Herych <heniekk@gmail.com>
|
|
pkgname=physfs
|
|
pkgver=2.0.0
|
|
pkgrel=2
|
|
pkgdesc="A library to provide abstract access to various archives."
|
|
arch=('i686' 'x86_64')
|
|
url="http://icculus.org/physfs/"
|
|
license=('zlib')
|
|
depends=('zlib')
|
|
makedepends=('cmake')
|
|
source=(http://icculus.org/physfs/downloads/$pkgname-$pkgver.tar.gz)
|
|
md5sums=('cfc53e0c193914c9c5ab522e58737373')
|
|
|
|
build() {
|
|
cd $startdir/src/$pkgname-$pkgver
|
|
export CFLAGS="$CFLAGS -fno-strict-aliasing"
|
|
export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
|
cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1
|
|
make || return 1
|
|
make DESTDIR=$startdir/pkg install
|
|
install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|