Initial PKGBUILD status as of 28.11.2014

This commit is contained in:
Jaroslav Lichtblau 2014-11-28 20:17:14 +01:00
commit 5c89eb00d1
5 changed files with 105 additions and 0 deletions

19
.AURINFO Normal file
View file

@ -0,0 +1,19 @@
pkgbase = vegastrike-data-svn
pkgdesc = SVN version of a 3D OpenGL Action-Space-Sim allowing players to trade and bounty hunt in a vast universe.
pkgver = 13681
pkgrel = 1
url = http://vegastrike.sourceforge.net/
install = vegastrike-data-svn.install
arch = i686
arch = x86_64
license = GPL
makedepends = subversion
depends = desktop-file-utils
depends = vegastrike
optdepends = vegastrike-svn: development version of the game binaries
conflicts = vegastrike-data
source = vegastrike-data-svn.desktop
md5sums = 4ccd4180c57a5544841e3365330a61d9
pkgname = vegastrike-data-svn

19
.SRCINFO Normal file
View file

@ -0,0 +1,19 @@
pkgbase = vegastrike-data-svn
pkgdesc = SVN version of a 3D OpenGL Action-Space-Sim allowing players to trade and bounty hunt in a vast universe.
pkgver = 13681
pkgrel = 1
url = http://vegastrike.sourceforge.net/
install = vegastrike-data-svn.install
arch = i686
arch = x86_64
license = GPL
makedepends = subversion
depends = desktop-file-utils
depends = vegastrike
optdepends = vegastrike-svn: development version of the game binaries
conflicts = vegastrike-data
source = vegastrike-data-svn.desktop
md5sums = 4ccd4180c57a5544841e3365330a61d9
pkgname = vegastrike-data-svn

50
PKGBUILD Normal file
View file

@ -0,0 +1,50 @@
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=vegastrike-data-svn
_pkgname=vegastrike
pkgver=13681
pkgrel=1
pkgdesc="SVN version of a 3D OpenGL Action-Space-Sim allowing players to trade and bounty hunt in a vast universe."
arch=('i686' 'x86_64')
url="http://vegastrike.sourceforge.net/"
license=('GPL')
depends=('desktop-file-utils' 'vegastrike')
makedepends=('subversion')
optdepends=('vegastrike-svn: development version of the game binaries')
conflicts=('vegastrike-data')
install=${pkgname}.install
source=($pkgname.desktop)
md5sums=('4ccd4180c57a5544841e3365330a61d9')
_svntrunk=https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk/data
_svnmod=data
package() {
cd "${srcdir}"
#data files
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "Vegastrike DATA SVN checkout done or server timeout"
#data files install
install -d "${pkgdir}"/usr/share
cp -a "${srcdir}"/data "${pkgdir}"/usr/share
mv "${pkgdir}"/usr/share/data "${pkgdir}"/usr/share/${_pkgname}
#install man page, .desktop file and icon
install -D -m644 "${pkgdir}"/usr/share/${_pkgname}/documentation/${_pkgname}.1 \
"${pkgdir}"/usr/share/man/man1/${_pkgname}.1
install -D -m644 "${srcdir}"/${pkgname}.desktop \
"${pkgdir}"/usr/share/applications/${_pkgname}.desktop
install -D -m644 "${pkgdir}"/usr/share/${_pkgname}/${_pkgname}.xpm \
"${pkgdir}"/usr/share/pixmaps/${_pkgname}.xpm
#removing unneeded
rm -rf `find "${pkgdir}"/usr/share -type d -name .svn`
#find "${pkgdir}"/usr/share -type d -name '.svn' | xargs rm -rf
}

View file

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Vega Strike SVN
Comment=Play a 3D space combat and simulation
Comment[cs]=Hraj 3D vesmírnou simulaci
Comment[es]=Juega un combate y una simulación del espacio 3D
Exec=vegastrike
Icon=vegastrike
StartupNotify=true
Terminal=false
Categories=Game;StrategyGame;

View file

@ -0,0 +1,6 @@
post_install() {
echo -n "Updating desktop and mime database ..."
update-desktop-database -q
echo " done!"
echo "==> Before running VegaStrike, you may adjust game preferences with the 'vssetup' command."
}