summaryrefslogtreecommitdiff
path: root/starcheat
diff options
context:
space:
mode:
Diffstat (limited to 'starcheat')
-rw-r--r--starcheat/.SRCINFO23
-rw-r--r--starcheat/.gitignore5
-rw-r--r--starcheat/PKGBUILD43
-rw-r--r--starcheat/starcheat.desktop7
-rw-r--r--starcheat/starcheat.sh2
5 files changed, 80 insertions, 0 deletions
diff --git a/starcheat/.SRCINFO b/starcheat/.SRCINFO
new file mode 100644
index 0000000..7fc2eb9
--- /dev/null
+++ b/starcheat/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = starcheat
+ pkgdesc = Starbound player save editor and Python library
+ pkgver = 0.26
+ pkgrel = 1
+ epoch = 9
+ url = https://github.com/wizzomafizzo/starcheat
+ arch = any
+ license = MIT
+ makedepends = python
+ makedepends = dos2unix
+ depends = python-pyqt5
+ depends = python-pillow
+ source = https://github.com/wizzomafizzo/starcheat/archive/0.26.tar.gz
+ source = py-starbound.zip::https://github.com/blixt/py-starbound/archive/3adf5c8e35aa93603cf72dfe115808bc8372ca6a.zip
+ source = starcheat.desktop
+ source = starcheat.sh
+ md5sums = 85f00a9de6933407af486ab305b8e35c
+ md5sums = 45951b751eede3762d40ab2c64142a31
+ md5sums = ef05183a35e289f6e036068db0d8c30b
+ md5sums = b1bdefdf82633ee135ea8980304f5513
+
+pkgname = starcheat
+
diff --git a/starcheat/.gitignore b/starcheat/.gitignore
new file mode 100644
index 0000000..06cb53e
--- /dev/null
+++ b/starcheat/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.gz
+*.xz
+*.zip
diff --git a/starcheat/PKGBUILD b/starcheat/PKGBUILD
new file mode 100644
index 0000000..4623b90
--- /dev/null
+++ b/starcheat/PKGBUILD
@@ -0,0 +1,43 @@
+pkgname=starcheat
+epoch=9
+pkgver=0.26
+pkgrel=1
+pkgdesc="Starbound player save editor and Python library"
+arch=(any)
+url="https://github.com/wizzomafizzo/starcheat"
+license=("MIT")
+depends=(python-pyqt5 python-pillow)
+makedepends=(python dos2unix)
+source=("https://github.com/wizzomafizzo/starcheat/archive/$pkgver.tar.gz"
+"py-starbound.zip::https://github.com/blixt/py-starbound/archive/3adf5c8e35aa93603cf72dfe115808bc8372ca6a.zip"
+"starcheat.desktop"
+"starcheat.sh")
+md5sums=('85f00a9de6933407af486ab305b8e35c'
+ '45951b751eede3762d40ab2c64142a31'
+ 'ef05183a35e289f6e036068db0d8c30b'
+ 'b1bdefdf82633ee135ea8980304f5513')
+
+prepare() {
+ cd py-starbound-*
+ find . -type f -exec dos2unix {} \;
+ cp -r * ../starcheat-$pkgver/starcheat/starbound/
+}
+
+build() {
+ cd starcheat-$pkgver
+ ./build.py -v
+}
+
+package() {
+ cd starcheat-$pkgver
+ install -Dm755 ../starcheat.sh "$pkgdir/usr/bin/starcheat"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/starcheat/LICENSE"
+ install -Dm644 ../starcheat.desktop "$pkgdir/usr/share/applications/starcheat.desktop"
+ install -Dm644 starcheat/images/starcheat_64.png "$pkgdir/usr/share/icons/starcheat.png"
+ cd build
+ find . -name '*.py' -exec install -Dm644 {} "$pkgdir/usr/share/starcheat/"{} \;
+ cd ../starcheat/images/icons
+ find . -type f -exec install -Dm644 {} "$pkgdir/usr/share/starcheat/icons/"{} \;
+ python -m compileall "$pkgdir/usr/share/starcheat"
+ find $pkgdir -type f -exec sed -i "s|${srcdir}||g" {} \;
+}
diff --git a/starcheat/starcheat.desktop b/starcheat/starcheat.desktop
new file mode 100644
index 0000000..68d98bb
--- /dev/null
+++ b/starcheat/starcheat.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Categories=Editor;Game
+Exec=starcheat
+GenericName=Starbound Character Editor
+Icon=starcheat.png
+Name=Starcheat
+Type=Application
diff --git a/starcheat/starcheat.sh b/starcheat/starcheat.sh
new file mode 100644
index 0000000..0b1db4b
--- /dev/null
+++ b/starcheat/starcheat.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+python /usr/share/starcheat/starcheat.py $@