summaryrefslogtreecommitdiff
path: root/pcr/pseint
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/pseint')
-rw-r--r--pcr/pseint/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/pseint/PKGBUILD b/pcr/pseint/PKGBUILD
new file mode 100644
index 000000000..159a9c934
--- /dev/null
+++ b/pcr/pseint/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Autor: Pablo Novara - Zaskar
+# Contributor: mncarbone <mncarbone@gmail.com>
+
+pkgname=pseint
+pkgver=20170313
+pkgrel=1
+pkgdesc="A tool for learning programming basis with a simple spanish pseudocode"
+arch=('i686' 'x86_64')
+url="http://pseint.sourceforge.net"
+license=('GPL')
+depends=('libpng12')
+url='http://ufpr.dl.sourceforge.net/project'
+source_x86_64=(http://prdownloads.sourceforge.net/pseint/pseint-l64-${pkgver}.tgz)
+source_i686=(http://prdownloads.sourceforge.net/pseint/pseint-l32-${pkgver}.tgz)
+md5sums_i686=('599fffec2bee56dd456ac2dbbf7241c6')
+md5sums_x86_64=('fd7725ea18034261aa2df2dc15dd8b7c')
+
+package() {
+ mkdir -p "${pkgdir}/opt/${pkgname}"
+ cp -rv "${srcdir}/${pkgname}/"* "${pkgdir}/opt/${pkgname}"
+ mkdir -p "${pkgdir}/usr/share/applications/"
+ desktopfile="${pkgdir}/opt/${pkgname}/${pkgname}.desktop"
+ touch $desktopfile
+ echo "[Desktop Entry]" >> $desktopfile
+ echo "Type=Application" >> $desktopfile
+ echo "Name=PSeInt" >> $desktopfile
+ echo "Comment=${pkgdesc}" >> $desktopfile
+ echo "Comment[es]=Una herramienta para aprender las bases de la programaciĆ³n mediante pseudocodigo en espaƱol" >> $desktopfile
+ echo "Exec=${pkgname}" >> $desktopfile
+ echo "Icon=/opt/${pkgname}/imgs/icon.svg" >> $desktopfile
+ echo "Terminal=false" >> $desktopfile
+ echo "Categories=Development;IDE;" >> $desktopfile
+ mkdir -p "${pkgdir}/usr/share/applications/"
+ cp $desktopfile "${pkgdir}/usr/share/applications/"
+ mkdir -p "${pkgdir}/usr/bin/"
+ touch "${pkgdir}/usr/bin/${pkgname}"
+ echo "#!/usr/bin/env sh" >> "${pkgdir}/usr/bin/${pkgname}"
+ echo "/opt/${pkgname}/wxPSeInt" >> "${pkgdir}/usr/bin/${pkgname}"
+ chmod +x "${pkgdir}/usr/bin/${pkgname}"
+}