blob: 895b615ab041d9263d7c946789a5344e505c1e05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: tjbp (archlinux@tjbp.net)
pkgname='php-lua'
pkgver='2.0.3'
pkgrel='1'
pkgdesc='PHP PECL extension for an embedded Lua interpreter'
arch=('i686' 'x86_64')
url='https://pecl.php.net/package/lua'
license=('PHP')
depends=('php>=7.0.0' 'lua')
source=(
"http://pecl.php.net/get/lua-$pkgver.tgz"
)
sha256sums=(
'5fd633bf701c2ebea9836f85532d44645ff88f0091bfcc0778580c88635d3580'
)
build() {
cd "$srcdir/lua-$pkgver"
phpize
/usr/bin/sh configure \
--prefix=/usr \
--with-lua=/usr
make
echo 'extension=lua.so' > lua.ini
}
package() {
pushd "$srcdir/lua-$pkgver"
make INSTALL_ROOT="$pkgdir" install
install -Dm644 lua.ini "$pkgdir/etc/php/conf.d/lua.ini"
popd
}
|