milis/talimatname/genel/d/duktape/talimat

27 lines
755 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Gömülü Javascript makinası
# URL: http://duktape.org/
# Paketçi: milisarge
# Gerekler: setconf
# Grup: sistem
isim=duktape
surum=2.2.0
devir=1
kaynak=(http://duktape.org/duktape-$surum.tar.xz
duktape.pc)
derle() {
cd "$isim-$surum"
mv Makefile.sharedlibrary Makefile
sed 's/-Wall -Wextra/$(CFLAGS)/g' -i Makefile
setconf Makefile INSTALL_PREFIX="$PKG/usr"
setconf "$SRC/duktape.pc" Version="$surum"
CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w" make -C "$SRC/$isim-$surum"
make -f Makefile.cmdline
install -d "$PKG/usr/lib" "$PKG/usr/include" "$PKG/usr/bin"
make install
cp duk $PKG/usr/bin/
install -Dm644 "$SRC/duktape.pc" "$PKG/usr/lib/pkgconfig/duktape.pc"
install -Dm644 LICENSE.txt "$PKG/usr/share/licenses/$isim/LICENSE"
}