# Maintainer: exponential _name=bmx-ng pkgname=bmx-ng-bin pkgver=0.138.3.53 pkgrel=0 pkgdesc="The compiler and IDE for the BlitzMax language" arch=('amd64') url="https://blitzmax.org/" license=('zlib' 'other') makedepends=('git') provides=("$_name") conflicts=("$_name") options=('!strip') install=$_name.install source=("https://github.com/bmx-ng/bmx-ng/releases/download/v${pkgver}.linux.x64/BlitzMax_linux_x64_${pkgver}.tar.xz" "$_name.desktop" "MaxIDE" "bmk" "bmx-ng.install") sha256sums=('23f60cd75aeaed13b63efeefffe7f1cb2d249c4ad72da7502ad1a474bef19878' 'a9eda2073e1bb76070032fce7f34f1fe11dd4c78198d35f98ff1d18d625753fc' '4cc9b26520e71d968808152252a080aabd830e1dbb6bda4c44de1a1b469e47ae' 'cf46d5d5a19e692fda15e2abfc88d53d8ae2b2190cfa4eb5b7c5c96ed264b1e4' '06439547310c26802496a20def0010017b2743c2341d40eca41eaf2b74227b09') package() { # Creating Directories install -m755 -d $pkgdir/usr/{bin,libexec/$_name,share/{doc/$_name,applications,pixmaps}} # Copy into pkgdir cp -R $srcdir/BlitzMax/ $pkgdir/usr/share/$_name echo "$pkgver" > $pkgdir/usr/share/doc/$_name/pkgver install -m755 $srcdir/MaxIDE $pkgdir/usr/bin/MaxIDE install -m755 $srcdir/bmk $pkgdir/usr/bin/bmk install -m644 $srcdir/$_name.desktop $pkgdir/usr/share/applications # Assembling libexec mv $pkgdir/usr/share/$_name/MaxIDE $pkgdir/usr/libexec/$_name/ mv $pkgdir/usr/share/$_name/setup_install.script $pkgdir/usr/libexec/$_name/ mv $pkgdir/usr/share/$_name/bin/bmk $pkgdir/usr/libexec/$_name/ mv $pkgdir/usr/share/$_name/bin/bcc $pkgdir/usr/libexec/$_name/ mv $pkgdir/usr/share/$_name/bin/docmods $pkgdir/usr/libexec/$_name/ mv $pkgdir/usr/share/$_name/bin/makedocs $pkgdir/usr/libexec/$_name/ # Linking ln -fs /usr/share/$_name/src/maxide/makeicons/64/Build-Run.png $pkgdir/usr/share/pixmaps/$_name.png ln -fs /usr/share/$_name/src/Licenses $pkgdir/usr/share/doc/$_name/ }