diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2017-10-14 08:20:37 +0200 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2017-10-14 08:20:37 +0200 |
commit | 23e2f7f1ed63388f2e3e0741b7661f1d0586f43d (patch) | |
tree | ca670f98943dd1c98c182ea83cfc558c341f9188 /pcr/mednaffe/PKGBUILD | |
parent | b9e6f25709fa8ff430cf4d50f06f8342a3828c36 (diff) | |
download | abslibre-23e2f7f1ed63388f2e3e0741b7661f1d0586f43d.tar.gz abslibre-23e2f7f1ed63388f2e3e0741b7661f1d0586f43d.tar.bz2 abslibre-23e2f7f1ed63388f2e3e0741b7661f1d0586f43d.zip |
pcr/mednaffe: updated to 0.8.6
Diffstat (limited to 'pcr/mednaffe/PKGBUILD')
-rw-r--r-- | pcr/mednaffe/PKGBUILD | 62 |
1 files changed, 44 insertions, 18 deletions
diff --git a/pcr/mednaffe/PKGBUILD b/pcr/mednaffe/PKGBUILD index 8fb5858da..a01b07ee8 100644 --- a/pcr/mednaffe/PKGBUILD +++ b/pcr/mednaffe/PKGBUILD @@ -1,32 +1,58 @@ -# Maintainer (Arch): MasterLaser <vaporeon@tfwno.gf> -# Maintainer: Márcio Silva <coadde@hyperbola.info> +# Maintainer: Andreas Grapentin <andreas@grapentin.org> +# Maintainer (AUR): Vaporeon <vaporeon@vaporeon.io> +# Contributor: Márcio Silva <coadde@hyperbola.info> +# Contributor (AUR): casa <sympho08@yandex.ru> -pkgname=mednaffe -pkgver=0.8 -pkgrel=2 -pkgdesc="front-end (GUI) for mednafen emulator" +pkgbase=mednaffe +pkgname=('mednaffe' 'mednaffe-gtk2') +pkgver=0.8.6 +pkgrel=1 arch=('i686' 'x86_64') -url="https://sites.google.com/site/amatcoder/mednaffe" +url="https://github.com/AmatCoder/mednaffe" license=('GPL') +makedepends=('mednafen' 'gtk2' 'gtk3') install=mednaffe.install -depends=('mednafen' 'gtk3') -source=(https://sites.google.com/site/amatcoder/mednaffe/downloads/mednaffe-$pkgver.tar.gz - remove-check_version.patch) -md5sums=('ab7c524d70170b8bba8819e71fc136e0' - 'e62f04ddb2c559a1b4bf022ec7b0cc4c') +source=(https://github.com/AmatCoder/mednaffe/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('cda5e3ae42b696b4322dc89a3a46e4b9da4a4b36c48be454d0e591c284927420') prepare() { - cd "$srcdir"/mednaffe-$pkgver - patch -Np1 -i $srcdir/remove-check_version.patch + cd "$srcdir"/$pkgbase-$pkgver + + mkdir build-gtk2 + cd build-gtk2 + ../configure --prefix=/usr + cd .. + + mkdir build-gtk3 + cd build-gtk3 + ../configure --prefix=/usr --enable-gtk3 + cd .. } build() { - cd "$srcdir"/mednaffe-$pkgver - ./configure --prefix=/usr --enable-gtk3 + cd "$srcdir"/$pkgbase-$pkgver/build-gtk2 + make + + cd "$srcdir"/$pkgbase-$pkgver/build-gtk3 make } -package() { - cd "$srcdir"/mednaffe-$pkgver +package_mednaffe() { + pkgdesc="front-end (GUI) for mednafen emulator" + depends=('mednafen' 'gtk3') + + cd "$srcdir"/$pkgbase-$pkgver/build-gtk3 + + make prefix="$pkgdir"/usr install +} + +package_mednaffe-gtk2() { + pkgdesc="front-end (GUI) for mednafen emulator (GTK2 Version)" + depends=('mednafen' 'gtk2') + provides=('mednaffe') + conflicts=('mednaffe') + + cd "$srcdir"/$pkgbase-$pkgver/build-gtk2 + make prefix="$pkgdir"/usr install } |