summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Pazzaglia2015-06-08 19:54:12 +0200
committerAlessandro Pazzaglia2015-06-08 19:54:12 +0200
commit260c5887208c02afa28171bdb257f5cd1bd1a125 (patch)
tree26679727b79f14c79cac7251c048f23387995131
downloadaur-260c5887208c02afa28171bdb257f5cd1bd1a125.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD43
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5ed9252eccc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = pyinstaller
+ pkgdesc = An application to convert python scripts into stand-alone binaries
+ pkgver = 2.1
+ pkgrel = 1
+ url = http://www.pyinstaller.org
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = python2
+ options = !strip
+ options = !emptydirs
+ source = https://pypi.python.org/packages/source/P/PyInstaller/PyInstaller-2.1.tar.gz
+ md5sums = 248531f6fc94b0ffb02473321496d6d0
+
+pkgname = pyinstaller
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..20a7327d2d4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Alessandro Pazzaglia <jackdroido at gmail dot com>
+
+pkgname=pyinstaller
+_pyname=PyInstaller
+pkgver=2.1
+pkgrel=1
+pkgdesc="An application to convert python scripts into stand-alone binaries"
+arch=('i686' 'x86_64')
+url="http://www.pyinstaller.org"
+license=('GPL2')
+depends=('python2')
+source=(
+ "https://pypi.python.org/packages/source/P/PyInstaller/${_pyname}-${pkgver}.tar.gz"
+)
+md5sums=(
+ '248531f6fc94b0ffb02473321496d6d0'
+)
+options=('!strip' '!emptydirs')
+
+package() {
+ cd "${srcdir}/${_pyname}-${pkgver}"
+
+ msg "Removing unneeded stuff ..."
+
+ rm -rf "bootloader" "old" "tests" "PKG-INFO" "setup.py"
+
+ msg "Fixing python interpreter ..."
+
+ grep -RIl '^#!.*python' . | xargs sed -i '/^#!/ s,.*,#! /usr/bin/env python2,'
+
+ msg "Copying files ..."
+
+ install -d -m 755 "${pkgdir}/usr/bin"
+ install -d -m 755 "${pkgdir}/usr/share/doc/pyinstaller"
+ install -d -m 755 "${pkgdir}/usr/share/pyinstaller"
+
+ mv "doc/Manual.pdf" "${pkgdir}/usr/share/doc/pyinstaller" && rm -rf "doc"
+ cp -ra . "${pkgdir}/usr/share/pyinstaller"
+
+ msg "Creating symlinks ..."
+
+ ln -s "/usr/share/pyinstaller/pyinstaller.py" "${pkgdir}/usr/bin/pyinstaller"
+}