DEADSOFTWARE

Pkgbuild for Arch Linux
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Sun, 5 Mar 2017 09:34:45 +0000 (12:34 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Sun, 5 Mar 2017 09:34:45 +0000 (12:34 +0300)
PKGBUILD [new file with mode: 0644]

diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644 (file)
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"
+}