Skip to content

Instantly share code, notes, and snippets.

@dreness
Created March 8, 2020 12:31
Show Gist options
  • Save dreness/e094df76553fd83630d4e041d96cdadb to your computer and use it in GitHub Desktop.
Save dreness/e094df76553fd83630d4e041d96cdadb to your computer and use it in GitHub Desktop.
mingw-w64-mujs-git
_realname=mujs
pkgbase=mingw-w64-${_realname}-git
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-git"
pkgrel=1
pkgver=1.0.6_18_g6f93cab
pkgdesc='MuJS (mingw-w64)'
url='https://mujs.com/'
arch=('any')
source=("${_realname}"::"git+https://git.ghostscript.com/mujs.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_realname"
printf "%s" "$(git describe --tags --always | tr '-' '_')"
}
build() {
cd ${srcdir}/${_realname}
make release
}
package() {
cd ${srcdir}/${_realname}
make prefix=${pkgdir}${MINGW_PREFIX} install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment