You are not logged in.
Hi guys!
I need a package of lua-imlib2 for a lua script dealing with my images collections. I download lua-imlib2 source ball at the offical site, but have no idea how to write a PKGBUILD for it. Of course, "yaourt lua-imlib2" or "yaourt limlib2" gives no result.
Would someone do me favor? Thank you!
Anything but a code boy,
chi
Last edited by chisiyuan (2010-03-16 12:33:24)
Awesome is awesome.
Offline
Hi,
Here you go. Not sure if it all works. There is no install target, nor header files. So I just copied the library to /usr/lib.
There's an issue with the -fPIC flag. I'm no expert at this. Used a fix i see on the web with other libs. Seems to work.
Btw, it's not that difficult to build a make a PKGBUILD ![]()
# Maintainer: you?
pkgname=lua-imlib2
pkgver=0.1
pkgrel=1
pkgdesc="A binding to the Imlib2 image manipulation library."
arch=('i686' 'x86_64')
url="http://asbradbury.org/projects/lua-imlib2/"
license=('custom')
depends=()
source=(http://luaforge.net/frs/download.php/3042/$pkgname-$pkgver.tar.gz)
md5sums=('f90d5d70ea8af6b66ee2e3071a08ec00')
build() {
cd $srcdir/$pkgname-$pkgver
make CFLAGS="-fPIC" || return 1
# Install library
install -dv -m755 $pkgdir/usr/lib
install -m644 *.so $pkgdir/usr/lib
# Install license
install -dv -m755 $pkgdir/usr/share/licenses/$pkgname
install -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname
}edit: I forgot to fill in the depends. I guess it should be lua and imlib2 at least. You can check with namcap.
Last edited by leepesjee (2010-03-11 23:10:26)
Offline
Offline