updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / alien / PKGBUILD
blobef70d3d9d2a1f3578fd304cd3364d7c0ceff8cd2
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=(alien)
4 pkgver=0.5.0
5 pkgrel=1
6 pkgdesc="Lets a Lua application call load dynamic libraries and call C functions in a portable way, using libffi."
7 arch=('i686' 'x86_64')
8 url="http://alien.luaforge.net/"
9 license=('GPL')
10 depends=('lua' 'libffi')
11 source=("$url$pkgname-$pkgver.tar.gz" "Makefile.$pkgname")
12 md5sums=('d6b265798f6d610d4651d054f601d468'
13          'dc7d4074bd4ea6935afa59c374fa2e05')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   # Placing Makefile
19   cp ../Makefile.$pkgname .
21   # Removing luarock
22   sed -i "/luarocks/d" samples/*.lua
24   # Fixing constants script
25   sed -i "s/lua \(constants\).lua/$pkgname-\1/" src/constants
27   # Build
28   make -f Makefile.$pkgname
31 package() {
32   cd "$srcdir/$pkgname-$pkgver"
34   # Install
35   make -f Makefile.$pkgname DESTDIR="$pkgdir/" install