Last active
October 17, 2015 14:43
-
-
Save kusakata/9550078 to your computer and use it in GitHub Desktop.
openspades-git PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: kusakata <shohei atmark kusakata period com> | |
pkgname=openspades-data-git | |
pkgver=0.0.10.184.gcfd3828 | |
_rlver=0.0.10 | |
pkgrel=1 | |
pkgdesc="A clone of Voxlap Ace of Spades 0.75" | |
arch=('any') | |
url="https://github.com/yvt/openspades" | |
license=('GPL3') | |
makedepends=('imagemagick') | |
provides=('openspades-data') | |
source=("$pkgname"::'git://github.com/yvt/openspades.git' "https://github.com/yvt/openspades/releases/download/v${_rlver}/OpenSpades-${_rlver}-Windows-winxp.zip") | |
md5sums=('SKIP' | |
'39e500efa5b01902ae2b6a23effe6fe6') | |
pkgver() { | |
cd "$pkgname" | |
git describe --tags | sed 's/^v//' | sed 's/-/./g' | |
} | |
package() { | |
mkdir "${pkgdir}/usr" | |
mkdir "${pkgdir}/usr/share" | |
mkdir "${pkgdir}/usr/share/${pkgname}" | |
mkdir "${pkgdir}/usr/share/pixmaps" | |
cd "$pkgname" | |
cp -r "Resources/Gfx/Killfeed" "Resources/" | |
cp -r Resources "${pkgdir}/usr/share/${pkgname}" | |
cd "Resources/Icons" | |
convert OpenSpades.ico openspades.png | |
cp openspades-7.png "${pkgdir}/usr/share/pixmaps/openspades.png" | |
cd "${srcdir}/OpenSpades-${_rlver}-Windows/Resources" | |
cp pak999-References.pak "${pkgdir}/usr/share/${pkgname}/Resourcespak999-References.pak" | |
cd "${srcdir}/OpenSpades-${_rlver}-Windows" | |
cp -r Resources "${pkgdir}/usr/share/${pkgname}" | |
cd "${pkgdir}/usr/share/${pkgname}/Resources" | |
rm mkpak.sh | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: kusakata <shohei atmark kusakata period com> | |
pkgname=openspades-git | |
pkgver=0.0.10.184.gcfd3828 | |
pkgrel=1 | |
pkgdesc="A clone of Voxlap Ace of Spades 0.75" | |
arch=('i686' 'x86_64') | |
url="https://github.com/yvt/openspades" | |
license=('GPL3') | |
depends=('curl' 'fltk' 'glew' 'mesa' 'openal' 'openspades-data-git' 'sdl2' 'sdl2_image') | |
makedepends=('cmake' 'git') | |
provides=('openspades') | |
source=("$pkgname"::'git://github.com/yvt/openspades.git' "openspades.desktop") | |
md5sums=('SKIP' | |
'397bf995c84d5ae8d7014eae7d4a1c2d') | |
pkgver() { | |
cd "$pkgname" | |
git describe --tags | sed 's/^v//' | sed 's/-/./g' | |
} | |
build() { | |
cd "$pkgname" | |
cmake -D CMAKE_INSTALL_PREFIX=/usr -D OPENSPADES_RESDIR=/usr/share/openspades-data-git/Resources . | |
make OpenSpades | |
} | |
package() { | |
cd "$pkgname/bin" | |
install -Dm755 OpenSpades "${pkgdir}/usr/bin/openspades" | |
cd "${srcdir}" | |
install -Dm644 "openspades.desktop" "${pkgdir}/usr/share/applications/openspades.desktop" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment