From 802152dc9bdd388e82a5beec0f86f65818b0212f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Nov 2021 21:31:02 +0000 Subject: Added Arch linux PKGBUILD prototype. --- package/aur/PKGBUILD.osirion | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 package/aur/PKGBUILD.osirion diff --git a/package/aur/PKGBUILD.osirion b/package/aur/PKGBUILD.osirion new file mode 100644 index 0000000..c675e0c --- /dev/null +++ b/package/aur/PKGBUILD.osirion @@ -0,0 +1,48 @@ +# +# Maintainer: Stijn Buys +# + +pkgname=osirion +pkgver=0.2.8 +pkgrel=1 +pkgdesc="A free space trading and combat simulation with open gameplay" +url="http://osirion.org/" +arch=('x86_64' 'armv7h') +license=('GPL') +depends=('zlib' 'bullet' 'libjpeg' 'libpng' 'libvorbis' 'libogg' 'flac' 'sdl2' 'libgl' 'glu' 'openal') +makedepends=('automake' 'autoconf') +optdepends=(i'ncurses') +provides=('osirion') +conflicts=('osirion-server' 'osirion-git' 'osirion-server-git') +backup=() +options=() +source=("http://osirion.org/files/${pkgname}-${pkgver}-src.tar.bz2" + "http://osirion.org/files/${pkgname}-${pkgver}-data.zip") +sha256sums=('2b164ad11e2907eafb2200585afd400bdfe6eacd94d4c40a29c5750e4a2ccc6d' + 'dfa2e9ed814c03bcc0f7b4b14f5e981a6762762306ac131adb57c6a190512c74') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}-src" + +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}-src" + + ./configure \ + --prefix=/usr + + ./configure \ + --prefix=/usr \ + --disable-debug + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}-src" + make DESTDIR="${pkgdir}" install + + cd "${srcdir}" + install -D --mode=644 --directory "${srcdir}/data" "${pkgdir}/usr/share/osirion/data" +} + -- cgit v1.2.3