# Maintainer: Kevin MacMartin _pkgname=wla-dx pkgname="${_pkgname/-/_}" pkgver=10.5 pkgrel=1 pkgdesc='Multi Platform Cross Assembler Package for GB-Z80 (Game Boy), Z80 (GG, SMS, MSX, Spectrum, Ti86, etc), 6502 (NES, etc), 65C02 (VIC-20, etc), 6510 (C64, etc), 65816 (SNES, etc), HUC6280 (PC-Engine) and SPC-700 (SNES sound chip)' url='https://github.com/vhelin/wla-dx' license=('GPL2') arch=('i686' 'x86_64') depends=('glibc') makedepends=('cmake' 'python-sphinx') source=("https://github.com/vhelin/wla-dx/archive/v$pkgver.tar.gz") sha512sums=('55f5067d71914bc4733e4594431114f4b0541f29f8b386f8cea75de7f32331f2b41e08871ad3b59ae314e845dfd2d8862193f3292de8126dbbdb653ca71eb81a') build() { cd $_pkgname-$pkgver cmake -G 'Unix Makefiles' } package() { cd $_pkgname-$pkgver unset CFLAGS export CC=gcc LD=gcc make DESTDIR="$pkgdir" install # Install to /usr not /usr/local cd "$pkgdir" mv usr temp mv temp/local usr rmdir temp # Move the man directory to the correct location mv usr/man usr/share/man }