mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-02 15:21:43 +01:00
38 lines
948 B
Plaintext
38 lines
948 B
Plaintext
# Contributor:
|
|
# Maintainer:
|
|
pkgname=lua-iconv
|
|
pkgver=6
|
|
pkgrel=2
|
|
pkgdesc="Lua binding to the POSIX 'iconv' library"
|
|
url="http://luaforge.net/projects/lua-iconv/"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=
|
|
makedepends="libiconv-dev lua-dev"
|
|
install=
|
|
subpackages=
|
|
source="http://luaforge.net/frs/download.php/4181/lua-iconv-6.tar.gz
|
|
0001-lua-iconv-make-close-available-from-lua.patch"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
prepare() {
|
|
cd "$_builddir"
|
|
patch -p1 -i "$srcdir"/0001-lua-iconv-make-close-available-from-lua.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
make CFLAGS="$CFLAGS" LFLAGS="-llua -liconv -shared $LDFLAGS" \
|
|
|| return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
# tests fail
|
|
# make DESTDIR="$pkgdir" INSTALL_PATH=/usr/lib/lua/5.1 install
|
|
install -D -s iconv.so "$pkgdir"/usr/lib/lua/5.1/iconv.so
|
|
}
|
|
|
|
md5sums="2cec334c5786d7c420a53003d6cb93d4 lua-iconv-6.tar.gz
|
|
88e23691e79f357a6048f226e8ed8e23 0001-lua-iconv-make-close-available-from-lua.patch"
|