mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-14 04:12:25 +01:00
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
# Contributor:
|
|
# Maintainer:
|
|
pkgname=lua-iconv
|
|
pkgver=7
|
|
pkgrel=0
|
|
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="https://github.com/downloads/ittner/lua-iconv/lua-iconv-$pkgver.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"
|
|
if [ "$ALPINE_LIBC" = "eglibc" ]; then
|
|
LFLAGS="-llua -shared $LDFLAGS"
|
|
else
|
|
LFLAGS="-llua -liconv -shared $LDFLAGS"
|
|
fi
|
|
make CFLAGS="$CFLAGS" LFLAGS="$LFLAGS" || 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="8a38b4e6ac8a9290093898793d16fe4b lua-iconv-7.tar.gz
|
|
88e23691e79f357a6048f226e8ed8e23 0001-lua-iconv-make-close-available-from-lua.patch"
|