diff options
author | Stephen Seo | 2020-05-20 20:31:38 +0900 |
---|---|---|
committer | Stephen Seo | 2020-05-20 20:31:38 +0900 |
commit | 36accb7e3d2bd3a0ec2a5da78afcd4dedc797a40 (patch) | |
tree | 1ee65a361acc9f9d60bbbbad15fbb9b2aed0250f | |
download | aur-36accb7e3d2bd3a0ec2a5da78afcd4dedc797a40.tar.gz |
Init commit with PKGBUILD and .SRCINFO
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f4c4ec1bfc09 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mingw-w64-raylib + pkgdesc = Simple and easy to use game programming library + pkgver = 3.0.0 + pkgrel = 1 + url = https://www.raylib.com + arch = x86_64 + license = ZLIB + makedepends = git + makedepends = ninja + makedepends = mingw-w64-gcc + makedepends = mingw-w64-cmake + options = !strip + options = !buildflags + options = staticlibs + source = mingw-w64-raylib::git+https://github.com/raysan5/raylib.git#tag=3.0.0 + md5sums = SKIP + +pkgname = mingw-w64-raylib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7d365809512e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Stephen Seo <seo.disparate@gmail.com> +pkgname=mingw-w64-raylib +pkgver=3.0.0 +pkgrel=1 +pkgdesc="Simple and easy to use game programming library" +arch=(x86_64) +url="https://www.raylib.com" +license=(ZLIB) +groups=() +depends=() +makedepends=(git ninja mingw-w64-gcc mingw-w64-cmake) +replaces=() +backup=() +options=(!strip !buildflags staticlibs) +install= +source=("${pkgname}::git+https://github.com/raysan5/raylib.git#tag=${pkgver}") +noextract=() +md5sums=('SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + for _arch in ${_architectures}; do + mkdir -p "$srcdir/build_${_arch}" + pushd "$srcdir/build_${_arch}" + "${_arch}-cmake" "$srcdir/$pkgname" \ + -Wno-dev \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_INSTALL_PREFIX=/usr/${_arch} \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" \ + -D USE_EXTERNAL_GLFW=OFF \ + -D BUILD_EXAMPLES=OFF \ + -D BUILD_GAMES=OFF \ + -D SHARED=ON \ + -D STATIC=OFF \ + -D WITH_PIC=ON \ + -G Ninja + ninja + popd + done +} + +package() { + for _arch in ${_architectures}; do + DESTDIR="$pkgdir" ninja -C "$srcdir/build_${_arch}" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |