summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAloxaf2019-04-08 21:04:34 +0800
committerAloxaf2019-04-08 21:04:34 +0800
commit331dec29f96b25f9e60d97c515b62b2b18d1cc58 (patch)
tree8874e8a653bc5e022e2968ce1435453817aa013c
downloadaur-331dec29f96b25f9e60d97c515b62b2b18d1cc58.tar.gz
Add page-generator
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD48
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..939ccdf468b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = page-generator
+ pkgdesc = Python Automatic GUI Generator
+ pkgver = 4.22
+ pkgrel = 1
+ url = http://page.sourceforge.net/
+ arch = x86_64
+ license = GPL
+ depends = tk
+ depends = python
+ source = https://jaist.dl.sourceforge.net/project/page/page/4.22/page-4.22.tgz
+ md5sums = 7b0ec022dc524dee145e3ec9bbc70eeb
+
+pkgname = page-generator
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fc64e6edb4b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Aloxaf <aloxafx@gmail.com>
+
+# rename from page to page-generator to avoid conflict with https://github.com/I60R/page
+pkgname=page-generator
+pkgver=4.22
+pkgrel=1
+pkgdesc='Python Automatic GUI Generator'
+arch=('x86_64')
+url="http://page.sourceforge.net/"
+license=('GPL')
+depends=('tk' 'python')
+source=("https://jaist.dl.sourceforge.net/project/page/page/${pkgver}/page-${pkgver}.tgz")
+md5sums=('7b0ec022dc524dee145e3ec9bbc70eeb')
+
+package() {
+ cd "${srcdir}"
+ rm "page/lib/.#prefs.tcl"
+
+ mkdir -p "${pkgdir}/usr/bin"
+ mkdir -p "${pkgdir}/usr/share/applications"
+
+ cp -r "page/" "${pkgdir}/usr/share/${pkgname}"
+
+ cat > "${pkgdir}/usr/bin/${pkgname}" << \EOF
+#!/bin/sh
+
+PATH_TO_WISH=/usr/bin/wish8.6
+PAGE_HOME=/usr/share/page-generator
+
+export PATH_TO_WISH
+export PAGE_HOME
+
+exec ${PATH_TO_WISH} ${PAGE_HOME}/page.tcl "$*"
+EOF
+
+ chmod +x "${pkgdir}/usr/bin/${pkgname}"
+
+ cat > "${pkgdir}/usr/share/applications/${pkgname}.desktop" << EOF
+[Desktop Entry]
+Name=PAGE
+Comment=Python Automatic GUI Generator
+Icon=/usr/share/${pkgname}/page-icons/page256.png
+Exec=${pkgname}
+Terminal=false
+Type=Application
+Categories=Development;
+EOF
+}