diff --git a/talimatname/genel/d/duktape/duktape.hash b/talimatname/genel/d/duktape/duktape.hash new file mode 100644 index 000000000..9f5eebd4d --- /dev/null +++ b/talimatname/genel/d/duktape/duktape.hash @@ -0,0 +1 @@ +62f72206427633077cb02e7ccd2599ace4d254db409334593b86d262c0d50c14 duktape-2.2.0.tar.xz diff --git a/talimatname/genel/d/duktape/duktape.pc b/talimatname/genel/d/duktape/duktape.pc new file mode 100644 index 000000000..2e8ef3820 --- /dev/null +++ b/talimatname/genel/d/duktape/duktape.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: duktape +Description: Embeddable Javascript engine +Version: 2.2.0 +Libs: -L${libdir} -lduktape +Cflags: -I${includedir} diff --git a/talimatname/genel/d/duktape/talimat b/talimatname/genel/d/duktape/talimat new file mode 100644 index 000000000..6b6da47a1 --- /dev/null +++ b/talimatname/genel/d/duktape/talimat @@ -0,0 +1,25 @@ +# Tanım: Gömülü Javascript makinası +# URL: http://duktape.org/ +# Paketçi: milisarge +# Gerekler: setconf + +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" +}