milis/talimatname/genel/p/python3/talimat

69 lines
1.9 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: Sonraki nesil python üst düzey betik dili
# URL: http://www.python.org
# Paketçi: milisarge
# Gerekler: sqlite
isim=python3
surum=3.5.1
devir=1
kaynak=(
http://www.python.org/ftp/python/$surum/Python-$surum.tar.xz
python3.png)
docsurum=3.5.0a3
derle() {
cd Python-$surum
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--without-ensurepip
make
make DESTDIR=$PKG install
chmod -v 755 $PKG/usr/lib/libpython3.5m.so
chmod -v 755 $PKG//usr/lib/libpython3.so
# Install all HTML Docs files with desktop menu integration
install -v -dm755 $PKG/usr/share/doc/$isim-$docversion/html
cd $SRC
wget --no-check-certificate -c https://www.python.org/ftp/python/doc/${docversion:0:5}/python-${docversion}-docs-html.tar.bz2
tar --strip-components=1 \
--no-same-owner \
--no-same-permissions \
-C $PKG/usr/share/doc/$isim-$docversion/html \
-xvf python-$docversion-docs-html.tar.bz2
find $PKG/usr/share/doc/$isim-$docversion -type d -exec chmod 0755 {} \;
find $PKG/usr/share/doc/$isim-$docversion -type f -exec chmod 0644 {} \;
mkdir -p $PKG/usr/share/applications
echo "[Desktop Entry]
Categories=Development;Documentation
Exec=xdg-open file:///usr/share/doc/python3-$docversion/html/index.html
Icon=python3
StartupNotify=false
Terminal=false
Type=Application
Name=Python 3 Documentation
Name[fr]=Documentation Python 3" > $PKG/usr/share/applications/python3.desktop
install -Dm644 $SRC/$isim.png \
$PKG/usr/share/icons/hicolor/48x48/apps/$isim.png
}
doc () {
cd $PKG
bsdtar -cf \
bsdtar -cf \
$PKGMK_PACKAGE_DIR/$isim.doc#$surum-any.mps \
usr/share/doc/$isim-$docversion \
usr/share/applications/$isim.desktop \
usr/share/icons/hicolor/48x48/apps/$isim.png
rm -r usr/share/{doc,applications/$isim.desktop,icons/hicolor/48x48/apps/$isim.png}
}