diff options
author | Graham Edgecombe | 2014-05-27 10:45:10 +0100 |
---|---|---|
committer | Graham Edgecombe | 2014-05-27 10:55:16 +0100 |
commit | a03446add53cd1c39584be2c484f1c64d247a042 (patch) | |
tree | 62fa1de9c17ca2629ec1e00e1055849a03431fe5 /PKGBUILD | |
download | aur-a03446add53cd1c39584be2c484f1c64d247a042.tar.gz |
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e93375f2c9ad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Graham Edgecombe <graham@grahamedgecombe.com> +pkgname=openrct2-git +pkgver=r630.835835b +pkgrel=1 +pkgdesc="Open source clone of RollerCoaster Tycoon 2" +arch=('i686' 'x86_64') +url="https://openrct2.com" +license=('GPL3') +depends=('wine' 'mingw-w64-sdl2') +makedepends=('git' 'cmake' 'mingw-w64-gcc') +options=('!buildflags') +install=openrct2.install +source=("$pkgname"::'git://github.com/IntelOrca/OpenRCT2.git' + 'openrct2' + 'openrct2.desktop') +md5sums=('SKIP' + '58efc9b12751ae8a4ca62ba7fd48e945' + 'f3623006456c3c25878371a89873c8db') + +pkgver() { + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$pkgname" + cmake -DCMAKE_TOOLCHAIN_FILE=CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=Debug . + make +} + +package() { + cd "$srcdir/$pkgname" + install -Dm644 openrct2.dll "$pkgdir/usr/lib/openrct2/openrct2.dll" + install -Dm755 openrct2.exe "$pkgdir/usr/lib/openrct2/openrct2.exe" + install -Dm755 "$srcdir/openrct2" "$pkgdir/usr/bin/openrct2" + install -Dm644 "$srcdir/openrct2.desktop" "$pkgdir/usr/share/applications/openrct2.desktop" + + # For Wine to find the SDL2.dll file it needs to be in the same + # directory as openrct2.exe, so we symlink it in place. We don't use + # $CARCH here because on x86_64 OpenRCT2 is compiled with -m32, + # therefore we always want to use the i686 DLL. OpenRCT2 relies on + # Wine's WoW64 support to actually run on x86_64 machines. + ln -s /usr/i686-w64-mingw32/bin/SDL2.dll "$pkgdir/usr/lib/openrct2" +} |