Package Details: lua-imlib2 0.1-1

Package Base: lua-imlib2
Description: A complete binding to the Imlib2 image manipulation library.
Upstream URL: https://github.com/asb/lua-imlib2
Category: lib
Licenses: MIT
Submitter: None
Maintainer: None
Last Packager: None
Votes: 3
First Submitted: 2010-04-12 03:27
Last Updated: 2010-12-19 12:16

Dependencies (2)

Required by (0)

Sources

Latest Comments

Anonymous comment

2012-06-14 05:30

Got a few errors:

make: invalid option -- 'u'
make: invalid option -- '='
make: invalid option -- 'g'
make: invalid option -- 'c'
make: invalid option -- 'O'
make: invalid option -- '2'
make: unrecognized option '--param=ssp-buffer-size=4'
make: invalid option -- 'D'
make: invalid option -- '_'
make: invalid option -- 'F'
make: invalid option -- 'O'
make: invalid option -- 'T'


Fixed it by putting the $CFLAGS in quotes. Here's the new PKGBUILD:

# Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
pkgname=lua-imlib2
pkgver=0.1
pkgrel=1
pkgdesc="A complete binding to the Imlib2 image manipulation library."
license=('MIT')
arch="any"
url="https://github.com/asb/lua-imlib2"
depends=('lua>=5.1' 'imlib2')
source=($url/tarball/$pkgver)
md5sums=('66a629a4241d763f14283ae35e9f78fa')

build() {
cd "$srcdir"
cd `find -name asb*`

if [ $CARCH = x86_64 ]; then
CFLAGS=-fPIC
fi
make CFLAGS="$CFLAGS"

install -Dm0775 limlib2.so \
$pkgdir/usr/lib/lua/5.1/limlib2.so
install -Dm0664 imlib2.lua \
$pkgdir/usr/share/lua/5.1/imlib2.lua
install -Dm0644 LICENSE \
$pkgdir/usr/share/licenses/$pkgname/LICENSE
}

I'm on an i686 machine, haven't tested in x86_64.