diff options
author | Patrick Northon | 2022-07-26 23:15:29 -0400 |
---|---|---|
committer | Patrick Northon | 2022-07-26 23:15:29 -0400 |
commit | 9ad9e79a07f545cb5dd52c2eac1f7774dc5393bf (patch) | |
tree | d15794974bd508bee4f09994dfb17278e1c17736 | |
download | aur-9ad9e79a07f545cb5dd52c2eac1f7774dc5393bf.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 37 |
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d4213cf8c1d9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = libretro-swanstation-git + pkgdesc = SwanStation is an open-source Libretro core implementation of DuckStation, a PSX emulator. + pkgver = r5625.299f0638 + pkgrel = 1 + url = https://github.com/libretro/swanstation + arch = x86_64 + arch = i686 + license = GPL3 + makedepends = cmake + makedepends = git + depends = libretro-core-info + provides = libretro-swanstation + conflicts = libretro-swanstation + source = git+https://github.com/libretro/swanstation.git + sha256sums = SKIP + +pkgname = libretro-swanstation-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1f1ee0946af2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca> + +_pkgname='libretro-swanstation' +pkgname=${_pkgname}-git +provides=(${_pkgname}) +conflicts=(${_pkgname}) +pkgver=r5625.299f0638 +pkgrel=1 +pkgdesc='SwanStation is an open-source Libretro core implementation of DuckStation, a PSX emulator.' +url="https://github.com/libretro/swanstation" +license=('GPL3') +depends=('libretro-core-info') +makedepends=('cmake' 'git') +arch=('x86_64' 'i686') +sha256sums=('SKIP') +source=("git+${url}.git") + +_srcdir='swanstation' + +pkgver() { + cd "${_srcdir}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cmake -S ${_srcdir} -B 'build' -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX='/usr' + cmake --build 'build' +} + +package() { + #DESTDIR="${pkgdir}" cmake --install 'build' + install -Dm755 'build/swanstation_libretro.so' -t "${pkgdir}/usr/lib/libretro" + install -Dm644 "${_srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |