diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 16 insertions, 14 deletions
@@ -2,27 +2,29 @@ # based on gbdk package pkgname=gbdk-2020 -pkgver=3.2 -pkgrel=4 +pkgver=4.0.2 +pkgrel=1 pkgdesc="An updated version of Game Boy Development Kit" url="https://github.com/Zal0/gbdk-2020" license=('MIT') arch=('x86_64' 'i686') -makedepends=('sdcc' 'svn') -depends=('sdcc') +makedepends=('sdcc>=4.0.7.svn12016M' 'git') +depends=('sdcc>=4.0.7.svn12016M') conflicts=('gbdk' 'lcc') -# this is branch lcc-patch -source=("git+https://github.com/basxto/gbdk-2020#commit=87969af9aae690f85439460e73131273af3c8f4a") -#should be merged in the next version -#source=("https://github.com/Zal0/gbdk-2020/archive/v${pkgver}.tar.gz") +# this is branch 4.0.2-patched +source=("git+https://github.com/basxto/gbdk-2020#commit=c2edd502370ea39893f02e9fa58a772f0488071f") +# should be merged in the next version +#source=("https://github.com/Zal0/gbdk-2020/archive/${pkgver}.tar.gz") sha256sums=('SKIP') +options=('!strip') package() { - make -C ${pkgname} gbdk-build gbdk-support-install gbdk-lib-install TARGETDIR=/opt/${pkgname} BINDIR=/usr/bin/ SDCCDIR=/usr/ - mkdir -p ${pkgdir}/usr - mkdir -p ${pkgdir}/opt + make -C ${pkgname} gbdk-build gbdk-support-install gbdk-lib-install TARGETDIR=/usr/share/${pkgname}/ BINDIR=/usr/bin/ SDCCDIR=/usr/ + mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/ - mv ${pkgname}/build/gbdk ${pkgdir}/opt/${pkgname} - mv ${pkgdir}/opt/${pkgname}/bin ${pkgdir}/usr/ - find ${pkgdir}/opt/${pkgname}/ -type f -name '*.bat' -delete + mv ${pkgname}/build/gbdk ${pkgdir}/usr/share/${pkgname} + mv ${pkgdir}/usr/share/${pkgname}/bin ${pkgdir}/usr/ + find ${pkgdir}/usr/share/${pkgname}/ -type f -name '*.bat' -delete + rm -rf ${pkgdir}/usr/share/${pkgname}/examples/ + cp ${pkgname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/ } |