Files
extra/nestopia/PKGBUILD
2025-06-22 20:39:04 -05:00

31 lines
991 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=nestopia
pkgver=1.52.0
pkgrel=1
pkgdesc="An NES emulator featuring cycle exact emulation, a ridiculous number of mappers, and lots of custom sound chips."
url='http://0ldsk00l.ca/nestopia/'
license=('GPL-2' 'zlib')
arch=('i686' 'x86_64')
depends=('sdl2' 'fltk' 'zlib' 'libarchive' 'glu')
makedepends=('mesa' 'autoconf-archive')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/0ldsk00l/nestopia/archive/${pkgver}.tar.gz")
sha512sums=('d7b36a07c1def146b3596124d3d084c39865916069092eceb3c1a22a030573c94fff7f3525e161d671fedd672f81ef536a42b4d0b37779c5993ffc158cdd3c0b')
build() {
cd $pkgname-$pkgver
# build system normally disables this warning
export CXXFLAGS="$CXXFLAGS -Wno-narrowing"
autoreconf -vfi
./configure \
--prefix=/usr
make
}
package() {
make -C $pkgname-$pkgver install DESTDIR="$pkgdir"
install -Dm644 "$srcdir/$pkgname-$pkgver/"{COPYING,COPYRIGHT} -t "${pkgdir}/usr/share/licenses/$pkgname"
}