Permalink
Browse files

Brought masterofmagic up to speed, lots of changes to homm2; if state…

…ment tetc
  • Loading branch information...
Joe Davison
Joe Davison committed Aug 22, 2012
1 parent dd736f4 commit 567d9433521bdc8bf0dedf5e7ba77dce8dc495b3
@@ -1,4 +1,4 @@
*/*.pkg*
*/*.exe
*/src/
*/pkg/
*.pkg*
*.exe
src/
pkg/
@@ -1,6 +1,8 @@
#Arch Linux PKGBUILDs for GOG.com Games
These PKGBUILDs are provided for people who want a quick and dirty way to install their GOGs on Arch Linux.
See http://gogwiki.com/wiki/AUR for more information.
##Usage
These PKGBUILDs probably shouldn't be used until they are pushed to the AUR, but you are free to pull this
repository and do whatever you want with them.
@@ -13,28 +15,20 @@ If you would like to contribute, just contact any of the current contributors.
Contributors should pull and work with the git in its entirety.
- git pull git://github.com/Tea23/arch-gog.git
- git clone git://github.com/Tea23/arch-gog.git
- mkdir gamename
- cd gamename
- mkdir base
- cd base
- touch PKGBUILD
.gitignore should contain *at least*:
*.pkg*
*.exe
src/
pkg/
.gitignore should be placed in each directory containing a PKGBUILD.
Do **not** push game datafiles or packages!!
Do **not** push game datafiles or packages!! .gitignore in the root should protect against this, but please
add your own .gitignore rules where appropriate.
When you've finished making your PKGBUILD, you've built it and you've tested it, go back to the gitroot and:
- git add gamename/
- git commit -m "added a super awesome game yo"
- git push -u origin master
Have fun.
Have fun.
@@ -1,30 +1,42 @@
# Proof of concept
# Maintainer: Joe Davison <joedavison.davison@gmail.com>
pkgname=gog-homm_2_gold-base # Short names or long names?
pkgname=gog-homm_2_gold-base
_gogname=homm_2_gold
pkgver=1
pkgver=1.0.1.16
pkgrel=1
pkgdesc="A super duper awesome game yo"
pkgdesc="Fantasy turn-based strategy game, the sequel to Heroes of Might and Magic"
arch=('i686' 'x86_64')
url="http://www.gog.com"
license=('custom')
makedepends=('innoextract')
source=("setup_${_gogname}.exe")
md5sums=(4f089d5870e8639a17e26f00858da727) # Straight from GOGWiki
options=(!strip)
md5sums=(4f089d5870e8639a17e26f00858da727)
# It takes a long time to compress and you should not distribute the built packages.
# This disables compression, speeding up the build process.
# You can remove this option or change it to .pkg.xz if you wish.
PKGEXT=.pkg.tar
build() {
cd $srcdir
innoextract setup_${_gogname}.exe
# remove useless stuff
rm -rf tmp/
rm -rf "code:getdosboxfromini|path"
# gog specific stuff (gogwrap etc, we don't need it)
rm app/{gogwrap,"Graphic mode setup"}.exe app/goggame.dll
if [ ! -f setup_${_gogname}.exe ]; then
error "You must have setup_${_gogname}.exe present in the source dir: $PWD"
error "Download the game from your GOG shelf and try again. Stopping."
return 1
else
innoextract setup_${_gogname}.exe
# remove useless stuff
rm -rf tmp/
rm -rf "code:getdosboxfromini|path"
# gog specific stuff (gogwrap etc, we don't need it)
rm app/{gogwrap,"Graphic mode setup"}.exe app/goggame.dll
fi
}
package() {
# TODO: Convert to install
mkdir -p $pkgdir/opt/gog/${_gogname}/
cd $srcdir
@@ -1,24 +1,23 @@
# Maintainer: Joe Davison <joedavison.davison@gmail.com>
pkgname=gog-homm_2_gold-dosbox
_gogname=homm_2_gold
pkgver=1
pkgver=1.0.1.16
pkgrel=1
pkgdesc="A super duper awesome game yo"
pkgdesc="DOSBox launcher for Heroes of Might and Magic 2 from GOG.com"
arch=('i686' 'x86_64')
url="http://www.gog.com"
license=('custom')
depends=('dosbox' 'gog-homm_2_gold-base')
depends=('dosbox' 'gog-homm_2_gold-base' 'unionfs-fuse')
source=("homm2.conf" "homm2.png" "homm2.desktop")
md5sums=('2dab7b82e5c3708154e456f881d7a356'
'538ecd70b9f96adede2a728260dadb1a'
'5ab747683a1b2002e4cb24b33daaf10f')
build() {
mkdir dosbox
mv homm2.conf dosbox/
echo buttslol
}
'f6e88287a8ec5f686a9f224a92b66c63')
package() {
install -D -m 755 $srcdir/homm2 \
$pkgdir/usr/bin/homm2
install -D -m 644 $srcdir/homm2.png \
$pkgdir/usr/share/pixmaps/homm2.png
@@ -1,4 +1,16 @@
#!/bin/bash
#!/bin/sh
dosbox -conf "/opt/gog/homm2/homm2.conf"
exit $?
UNIONDIR=`mktemp -d`
RWDIR=$HOME/.gog/heroes_2_gold
RODIR=/opt/gog/heroes_2_gold/base
mkdir -p $RWDIR
unionfs -o cow ${RWDIR}=RW:${RODIR}=RO $UNIONDIR
cd $UNIONDIR
dosbox -conf homm2.conf
cd
sleep 1
fusermount -u $UNIONDIR
rmdir $UNIONDIR
@@ -10,13 +10,25 @@ arch=('i686' 'x86_64')
url='http://www.gog.com/gamecard/master_of_magic'
license=('custom')
makedepends=('innoextract')
options=(!strip)
md5sums=('94754ecfc79887a04888fa033a11c493')
# It takes a long time to compress and you should not distribute the built packages.
# This disables compression, speeding up the build process.
# You can remove this option or change it to .pkg.xz if you wish.
PKGEXT=.pkg.tar
build() {
cd $srcdir
innoextract setup_${_gogname}.exe
rm -rf 'code:getdosboxfromini|path'
if [ ! -f setup_${_gogname}.exe ]; then
error "You must have setup_${_gogname}.exe present in the source dir: $PWD"
error "Download the game from your GOG shelf and try again. Stopping."
return 1
else
innextract setup_${_gogname}.exe
rm -rf 'code:getdosboxfromini|path'
fi
}
package() {
@@ -12,9 +12,9 @@ source=(masterofmagic)
md5sums=('4e3afca18ed4df283de730e936bbde72')
package() {
cd $srcdir
mkdir -p $pkgdir/usr/bin
mv masterofmagic $pkgdir/usr/bin
install -D -m 755 $srcdir/masterofmagic \
$pkgdir/usr/bin/masterofmagic
TODO: xdg .desktop and icon
}
@@ -13,4 +13,4 @@ cd
sleep 1
fusermount -u $UNIONDIR
rmdir $UNIONDIR
rmdir $UNIONDIR

0 comments on commit 567d943

Please sign in to comment.