diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | gamespath.patch | 11 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8dc115b70c23 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ialauncher-git + pkgdesc = Play all of the Internet Archive’s MS-DOS games offline! + pkgver = 1 + pkgrel = 1 + url = https://github.com/rtts/ialauncher + arch = x86_64 + license = GPL3 + depends = dosbox + depends = webkit2gtk + depends = python + depends = python-natsort + depends = gst-plugins-bad + source = ialauncher::git+https://github.com/rtts/ialauncher.git + source = gamespath.patch + sha256sums = SKIP + sha256sums = 3d1fc7b7ad96bcbeb2f3a8331df7c157c9720c4f3c685715cba0aa1a98a2c166 + +pkgname = ialauncher-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d46e7777894f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: gee + +pkgname=ialauncher-git +pkgver=1 +pkgrel=1 +pkgdesc='Play all of the Internet Archive’s MS-DOS games offline!' +arch=('x86_64') +url='https://github.com/rtts/ialauncher' +license=('GPL3') +depends=('dosbox' 'webkit2gtk' 'python' 'python-natsort' 'gst-plugins-bad') +source=('ialauncher::git+https://github.com/rtts/ialauncher.git' + 'gamespath.patch') +sha256sums=('SKIP' + '3d1fc7b7ad96bcbeb2f3a8331df7c157c9720c4f3c685715cba0aa1a98a2c166') + +# no tags yet +#pkgver() { +# cd ialauncher + +# git describe | sed 's/-/.r/; s/-g/./' +#} + +#prepare() { +# cd ialauncher + +# patch -Np1 -i "${srcdir}/gamespath.patch" +#} + +build() { + cd ialauncher + + python setup.py build +} + +package() { + cd ialauncher + + python setup.py install --root="$pkgdir" + #install -dm 755 "${pkgdir}/opt/ialauncher/" + #cp -r games "${pkgdir}/opt/ialauncher/" +} diff --git a/gamespath.patch b/gamespath.patch new file mode 100644 index 000000000000..2f4762e7d7d6 --- /dev/null +++ b/gamespath.patch @@ -0,0 +1,11 @@ +--- a/bin/ialauncher ++++ b/bin/ialauncher +@@ -4,7 +4,7 @@ + from ialauncher.backend import Backend + from ialauncher.frontend import Frontend + +-games_dir= os.path.join(os.path.expanduser("~"), 'games') ++games_dir= '/opt/ialauncher/games' + if not os.path.isdir(games_dir): + print(''' + Error: the games directory could not be found at {} |