diff options
author | Vadik Leshy | 2015-09-06 21:01:53 +0600 |
---|---|---|
committer | Vadik Leshy | 2015-09-06 21:01:53 +0600 |
commit | bf13b5e8f2f1305763532aa059e5893453b7bb07 (patch) | |
tree | 9669bc4192cefbe918cddd35c620be11b5779d56 | |
download | aur-bf13b5e8f2f1305763532aa059e5893453b7bb07.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | urho3d-git.install | 7 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9f2ce5d84bfe --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = urho3d-git + pkgdesc = Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. This is git version of this package. + pkgver = 1.4.r455.ga3e0072-1 + pkgrel = 1 + url = http://urho3d.github.io + install = urho3d-git.install + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = cmake + depends = libx11 + depends = libgl + depends = libxrandr + provides = urho3d=1.4.r455.ga3e0072-1 + conflicts = urho3d + replaces = urho3d + source = git+https://github.com/urho3d/Urho3D.git + md5sums = SKIP + +pkgname = urho3d-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8be6c87f8c65 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +_pkgname=urho3d +pkgname=${_pkgname}-git +pkgver=1.4.r455.ga3e0072-1 +pkgrel=1 +pkgdesc="Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. This is git version of this package." +arch=('i686' 'x86_64') +url="http://urho3d.github.io" +license=('MIT') +depends=("libx11" "libgl" "libxrandr") +makedepends=('git' 'cmake') +conflicts=("$_pkgname") +replaces=("$_pkgname") +source=(git+https://github.com/urho3d/Urho3D.git) +md5sums=('SKIP') +install=urho3d-git.install + +pkgver() { + cd "./${_pkgname}" + git describe --long | sed -r "s/^${pkgname%-git}-//;s/([^-]*-g)/r\\1/;s/-/./g" +} + +provides=("$_pkgname=$pkgver") + +build() { + mkdir -p "$srcdir/Urho3D/build" + cd "$srcdir/Urho3D/build" + cmake "$srcdir/Urho3D/" -DCMAKE_INSTALL_PREFIX="/usr" -DURHO3D_USE_LIB_DEB=1 -DURHO3D_SAMPLES=1 + make +} + +package() { + cd "$srcdir/Urho3D/build" + make DESTDIR="$pkgdir/" install + cd "$pkgdir/usr/bin" + mv "./Editor.sh" "./urho3d-editor.sh" +} diff --git a/urho3d-git.install b/urho3d-git.install new file mode 100644 index 000000000000..27834653126f --- /dev/null +++ b/urho3d-git.install @@ -0,0 +1,7 @@ +post_install() { + echo "You need to export URHO3D_PREFIX_PATH=/usr/share/Urho3D/Resources in order to run samples" +} + +post_upgrade() { + post_install +} |