diff options
author | Maxime Gauduin | 2019-06-05 15:46:30 +0200 |
---|---|---|
committer | Maxime Gauduin | 2019-06-05 15:46:30 +0200 |
commit | 5864d0e08023cde6afe694a4718558324d5c57ba (patch) | |
tree | 84c17626e3cadb3abaf48ee23d47b323b72757c6 | |
download | aur-5864d0e08023cde6afe694a4718558324d5c57ba.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8bc4be8dba74 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = libretro-flycast-git + pkgdesc = Sega Dreamcast core + pkgver = r3644.8f861517 + pkgrel = 1 + url = https://github.com/libretro/flycast + arch = x86_64 + groups = libretro-unstable + license = GPL2 + makedepends = git + depends = libgl + depends = libretro-core-info + provides = libretro-flycast + conflicts = libretro-flycast + source = libretro-flycast::git+https://github.com/libretro/flycast.git + sha256sums = SKIP + +pkgname = libretro-flycast-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b8e90f746885 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Maxime Gauduin <alucryd@archlinux.org> + +pkgname=libretro-flycast-git +pkgver=r3644.8f861517 +pkgrel=1 +pkgdesc='Sega Dreamcast core' +arch=(x86_64) +url=https://github.com/libretro/flycast +license=(GPL2) +groups=(libretro-unstable) +depends=( + libgl + libretro-core-info +) +makedepends=( + git +) +provides=(libretro-flycast) +conflicts=(libretro-flycast) +source=(libretro-flycast::git+https://github.com/libretro/flycast.git) +sha256sums=(SKIP) + +pkgver() { + cd libretro-flycast + + echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +prepare() { + cd libretro-flycast + + sed 's/^HAVE_OIT.*:=.*/HAVE_OIT := 1/; + s/^CFLAGS.*:=.*/CFLAGS := ${CFLAGS}/; + s/^CXXFLAGS.*:=.*/CXXFLAGS := ${CXXFLAGS}/; + s/^LDFLAGS.*:=.*/LDFLAGS := ${LDFLAGS}/;' -i Makefile +} + +build() { + make -C libretro-flycast +} + +package() { + install -Dm 644 libretro-flycast/flycast_libretro.so -t "${pkgdir}"/usr/lib/libretro/ +} + +# vim: ts=2 sw=2 et: |