From: DeaDDooMER Date: Sun, 5 Mar 2017 09:34:45 +0000 (+0300) Subject: Pkgbuild for Arch Linux X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=d0793351bd1e7cdd18f93d6a5851053fea807ce5;p=mp3cc.git Pkgbuild for Arch Linux --- diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f50a471 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=midletpascal-git +pkgver=3.5.b7ecc39 +pkgrel=1 +pkgdesc='MidletPascal Compiler for Linux' +arch=('i686' 'x86_64') +url='https://github.com/DeaDDooMER/mp3CC-linux' +license=('GPLv3') +makedepends=('git' 'microemulator' 'java-environment-openjdk' 'proguard') +source=('git://github.com/DeaDDooMER/mp3CC-linux.git') +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/mp3CC-linux" + echo "3.5".$(git rev-parse --short HEAD) +} + +build() { + cd "${srcdir}/mp3CC-linux/mpc" + make + cd ../mps + ./make.sh +} + +package() { + cd "${srcdir}/mp3CC-linux" + mkdir -p "${pkgdir}/"{usr/bin,usr/share/midletpascal} + cp mpc/mp3CC "${pkgdir}/usr/bin" + cp -r mps/stubs "${pkgdir}/usr/share/midletpascal" +}