summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaume Delclòs Coll2019-08-12 15:13:18 +0200
committerJaume Delclòs Coll2019-08-12 15:13:18 +0200
commitb556ca8b635d4a1b474246a1ce470a0f89ba76c7 (patch)
tree9dcba419239a0c5cbeb44864e0f622065f7b6a77
downloadaur-b556ca8b635d4a1b474246a1ce470a0f89ba76c7.tar.gz
initial
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD29
-rw-r--r--red-alien.install13
4 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..16451a44a36
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = red-alien
+ pkgdesc = A script compiler and editor for Pokémon GBA ROMs
+ pkgver = 2.0.0
+ pkgrel = 1
+ url = https://www.cosarara.me/redalien/
+ install = red-alien.install
+ arch = any
+ license = GPL3
+ depends = python
+ depends = python-qscintilla-qt5
+ depends = python-pyqt5
+ options = !emptydirs
+ source = https://github.com/cosarara/red-alien/archive/v2.0.0.tar.gz
+ md5sums = 93f3a4441869bcb5ed8aa90d6ae0eb13
+
+pkgname = red-alien
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..72e8ffc0db8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..44bcad57a1d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Jaume Delclòs <jaume@delclos.com>
+pkgname=red-alien
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="A script compiler and editor for Pokémon GBA ROMs"
+arch=(any)
+url="https://www.cosarara.me/redalien/"
+license=('GPL3')
+depends=('python' 'python-qscintilla-qt5' 'python-pyqt5')
+options=(!emptydirs)
+install=red-alien.install
+source=("https://github.com/cosarara/red-alien/archive/v${pkgver}.tar.gz")
+md5sums=('93f3a4441869bcb5ed8aa90d6ae0eb13')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ #install -Dm644 utils/red-alien.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/red-alien.svg"
+ install -Dm644 ./asc/data/icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/red-alien.svg"
+ install -Dm644 utils/red-alien.desktop "$pkgdir/usr/share/applications/red-alien.desktop"
+ #install -Dm644 utils/red-alien.xml "$pkgdir/usr/share/mime/packages/red-alien.xml"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/red-alien.install b/red-alien.install
new file mode 100644
index 00000000000..4cb57e3beeb
--- /dev/null
+++ b/red-alien.install
@@ -0,0 +1,13 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+ update-mime-database usr/share/mime &>/dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ post_install "$1"
+}