summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Riedesel2015-09-02 23:23:03 -0500
committerMark Riedesel2015-09-02 23:23:03 -0500
commit8f4725b80aec235ea95d5d4067179b4711fdaa29 (patch)
tree213d431ef0fcde9e8bf6925f8ab95bde19d435af
downloadaur-xword.tar.gz
Tweaked and re-upped original PKGBUILD by brix
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD42
-rw-r--r--xword.desktop10
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e248d7d0953
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = xword
+ pkgdesc = Do crossword puzzles in Across Lite format
+ pkgver = 2.0.0rc2
+ pkgrel = 1
+ url = https://alioth.debian.org/projects/xword/
+ arch = any
+ license = BSD
+ depends = python2
+ depends = pygtk
+ depends = python2-wnck
+ source = http://ftp.de.debian.org/debian/pool/main/x/xword/xword_2.0.0~rc2.orig.tar.gz
+ source = xword.desktop
+ sha1sums = 0409f93f9cf65a5e450b89c81f358545ea268dcf
+ sha1sums = 06d4b27c61091f0d152e575078ee9d1ed89e1648
+
+pkgname = xword
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2627a778e39
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Based on original PKGBUILD: brix <blbennett .. telus . net>
+# Maintainer: Klowner <mark@klowner.com>
+
+pkgname=xword
+pkgver=2.0.0rc2
+pkgrel=1
+pkgdesc="Do crossword puzzles in Across Lite format"
+arch=('any')
+url="https://alioth.debian.org/projects/xword/"
+license=('BSD')
+depends=('python2' 'pygtk' 'python2-wnck')
+source=(http://ftp.de.debian.org/debian/pool/main/x/xword/xword_2.0.0~rc2.orig.tar.gz xword.desktop)
+sha1sums=('0409f93f9cf65a5e450b89c81f358545ea268dcf' '06d4b27c61091f0d152e575078ee9d1ed89e1648')
+
+prepare() {
+ cd xword-2.0.0~rc2
+## uncomment next 4 lines to enable HiDPI (~275 ppi) text display
+# sed -i 's/25/09/' xword/grid.py
+# sed -i 's/45/20/' xword/grid.py
+# sed -i 's/85/39/' xword/grid.py
+# sed -i 's/, 200)/, 400)/' xword/main.py
+ sed -i '1s/env python/&2/' scripts/xword
+ sed -i '/set_website/d' xword/main.py
+ sed -i 's/lambda .args: dialog/lambda dlg,resp: dlg/' xword/main.py
+ sed -i '/set_website/d' xword/organizer.py
+ sed -i 's/lambda .args: dialog/lambda dlg,resp: dlg/' xword/organizer.py
+}
+
+build() {
+ cd xword-2.0.0~rc2
+ python2 setup.py build
+}
+
+package() {
+ cd xword-2.0.0~rc2
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 README "$pkgdir/usr/share/doc/$pkgname/README"
+ install -D -m644 PKG-INFO "$pkgdir/usr/share/doc/$pkgname/PKG-INFO"
+ install -D -m644 ../xword.desktop "$pkgdir/usr/share/applications/xword.desktop"
+ python2 setup.py install --root="${pkgdir}"
+}
+
diff --git a/xword.desktop b/xword.desktop
new file mode 100644
index 00000000000..64c3302a5ef
--- /dev/null
+++ b/xword.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Xword
+Comment=Do crossword puzzles in Across Lite format
+Exec=xword
+Terminal=false
+Type=Application
+StartupNotify=true
+Icon=text-editor.png
+Categories=GTK;Application;Game