Skip to content

Instantly share code, notes, and snippets.

@marsam
Last active January 4, 2016 15:09
Show Gist options
  • Select an option

  • Save marsam/8639171 to your computer and use it in GitHub Desktop.

Select an option

Save marsam/8639171 to your computer and use it in GitHub Desktop.
Higgs PKGBUILD
Copyright (c) 2011-2013, Maxime Chevalier-Boisvert. All rights reserved.
This software is licensed under the following license (Modified BSD
License):
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote
products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Maintainer: Tom Bebbington <tophattedcoder@gmail.com>
# Contributor: Mario Rodas <rodasmario2@gmail.com>
pkgname=higgs-git
_gitname=higgs
pkgver=r747.d7ad1aa
pkgrel=1
pkgdesc="An interpreter and JIT compiler for JavaScript targetting x86-64 platforms."
arch=('x86_64')
url="https://github.com/maximecb/Higgs"
license=('custom:"Copyright (c) 2011-2013, Maxime Chevalier-Boisvert."')
groups=('devel')
makedepends=('dmd' 'libphobos-devel' 'glibc')
options=('!strip' 'emptydirs' '!makeflags')
source=("LICENSE" "$_gitname::git+https://github.com/maximecb/Higgs.git")
md5sums=('0bae9d479c77861fe7f1ec872f242a3e' 'SKIP')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
# We use /etc/higgs as LIB_DIR
# See: https://github.com/maximecb/Higgs/issues/35
build() {
cd $srcdir/$_gitname/source
sed -i "s:python\b:python2:g" makefile
make BIN_DIR=$pkgdir/usr/bin LIB_DIR=$pkgdir/etc/higgs all
}
package() {
cd "$srcdir/$_gitname/source"
install -d "$pkgdir/usr/bin"
install -d "$pkgdir/etc/higgs"
install -D -m644 "$srcdir/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
make BIN_DIR=$pkgdir/usr/bin LIB_DIR=$pkgdir/etc/higgs install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment