diff options
author | Ashley Towns | 2016-01-02 19:37:10 +1100 |
---|---|---|
committer | Ashley Towns | 2016-01-02 19:37:10 +1100 |
commit | b151ecf418f087293844561445c88bacd270b6f1 (patch) | |
tree | 6e738ded7d7a905803808867afaa8c7e48acf4ba /PKGBUILD | |
download | aur-b151ecf418f087293844561445c88bacd270b6f1.tar.gz |
initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c9eb278ddfcb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Ashley Towns <mail {at} ashleytowns {dot} id {dot} au> + +pkgname=swen +pkgver=28.91c5b6b +pkgrel=1 +pkgdesc="A toy 2d game engine written in swift using SDL2" +arch=('any') +url="https://github.com/aktowns/${pkgname}" +license=('apache') +depends=('sdl2' 'sdl2_gfx' 'sdl2_image' 'sdl2_net' 'sdl2_ttf' 'sdl2_mixer' 'chipmunk' 'libxml2') +makedepends=('git') +source=(${pkgname}::"git+https://github.com/aktowns/${pkgname}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname}" + echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + swift build +} + +package() { + # make -C "${srcdir}/${pkgname}" DESTDIR="${pkgdir}" install + mkdir -p "${pkgdir}/usr/bin" + cp "${srcdir}/${pkgname}/.build/debug/SwenDemo" "${pkgdir}/usr/bin" +} + |