cjs.paketlendi

This commit is contained in:
milisbir 2017-12-16 20:18:57 +02:00
parent 7189709530
commit b81f2eb673
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
# Tanım: Cinnamon için Javascript Bağları
# URL: https://github.com/linuxmint/cjs
# Paketçi: Cihan Alkan
# Gerekler: gtk3 gobject-introspection js38 dbus-glib python gtk3 autoconf-archive gnome-common
isim=cjs
surum=3.6.1
devir=1
kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz)
derle() {
cd $isim-$surum
./autogen.sh --prefix=/usr --disable-static --libexecdir=/usr/lib
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
}

View File

@ -32,6 +32,6 @@ derle() {
SHELL=/bin/sh make || SHELL=/bin/sh make
SHELL=/bin/sh make DESTDIR="$PKG" install
rm -f "$PKG"/usr/lib/*.ajs
rm -f "$PKG"/usr/bin/js38
find "$PKG"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
mv $PKG/usr/lib/pkgconfig/js.pc $PKG/usr/lib/pkgconfig/mozjs-38.pc
}