Finally having some time to check back in on this; good job on making progress in my absence, rmblr. I noticed your AUR package and, in the absence of an idea of the direction the code needs to go, I decided to test it out. The first thing I noticed is that you've added qtilities as an in-source dependency. While I'll admit to not being familiar with using dependencies in this way, I found that I still had to install qtilities using your AUR package to make the LNP run. Perhaps this is intended (why include it in the source, then?), or maybe it's just something you haven't gotten around to finishing yet, but I figured I'd point it out in any case.
When installing the package, I found that the PKGBUILD had a few mistakes, but it compiled and worked fine on my system after I made a few tweaks. As the package currently doesn't function without qtilities, I added it to the depends, make sure to remove it if you make it so that's not necessary.
# Maintainer: Casey Link < unnamedrambler gmail DOT com>
pkgname=lazy-newb-pack
pkgver=20120202
pkgrel=1
pkgdesc="Lazy Newb Pack for Linux"
arch=('i686' 'x86_64')
url="http://www.bay12forums.com/smf/index.php?topic=59026.1140"
license=('BSD 3-clause')
depends=('gcc-libs' 'qt' 'qtilities' 'yaml-cpp')
makedepends=('git' 'unzip')
source=(http://binaryelysium.com/df/LNP_data-9.3.zip
lazy-newb-pack
lazy-newb-pack.desktop
lnp.png)
noextract=(${source[@]##*/})
md5sums=(f0d46d39e0efac2ed774766780307687
f57d6fb34ea0f2b7884ac6f983396564
773f7ac1f46eb83e3b0ac2560c8f1457
9115aaf044e125472e1679ff6201fb93)
_gitroot="git://github.com/Ramblurr/lazy-newb-pack-qt.git"
_gitname="lazy-newb-pack-qt"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
git submodule update
msg "The local files are updated."
else
git clone $_gitroot $_gitname
cd $_gitname
git submodule update --init
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
# BUILD
qmake "Lazy_Newb_Pack.pro"
make || return 1
cd "$srcdir"
}
package() {
cd "$srcdir"
if [ -d LNP ] ; then
rm -rf LNP/
fi
unzip "LNP_data-*.zip"
cd "$srcdir/$_gitname"
install -dm755 $pkgdir/opt/$pkgname
cp -r $srcdir/LNP $pkgdir/opt/$pkgname/
install -Dm755 "${srcdir}/${_gitname}/src/LazyNewbPack" $pkgdir/opt/$pkgname/lazy-newb-pack
install -d -m775 -o root -g games $pkgdir/opt/$pkgname/LNP
chmod -R 775 $pkgdir/opt/$pkgname
chown -R root:games $pkgdir/opt/$pkgname
install -Dm755 $srcdir/lazy-newb-pack $pkgdir/usr/bin/lazy-newb-pack
install -Dm644 $srcdir/lazy-newb-pack.desktop $pkgdir/usr/share/applications/lazy-newb-pack.desktop
install -Dm644 $srcdir/lnp.png $pkgdir/usr/share/pixmaps/lnp.png
}
# vim:set ts=2 sw=2 et:
Relatedly, the PKGBUILD for qtilities is also broken: the md5 is wrong, and while the tarball it downloads is JPNaude-Qtilities-44fb841.tar.gz, I ended up with a folder called JPNaude-Qtilities-50752d6, and had to change the _realname accordingly. It worked fine after changing the md5 and _realname, though. I'm not entirely sure what was going on there.
Any ideas on how I can help from here, rmblr? I'm kinda lost in the code now, and don't know what needs work right now.
And finally, a screenshot of the current state of the Qt LNP: