void-packages/srcpkgs/slimerjs/template
2015-08-28 11:23:33 +00:00

27 lines
779 B
Bash

# Template file for 'slimerjs'
pkgname=slimerjs
version=0.9.6
revision=3
noarch=yes
wrksrc=$pkgname-RELEASE_$version
hostmakedepends="zip"
depends="bash firefox-esr<40"
short_desc="A scriptable browser for Firefox"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="MPL-2.0, BSD"
homepage="https://slimerjs.org"
distfiles="https://github.com/laurentj/$pkgname/archive/RELEASE_${version}.tar.gz"
checksum=6c0b36c2ed21351e7dd26140e452af5f98877d1071021d164b97daf39f9fe55c
do_build() {
./buildpackage.sh --no-bin
}
do_install() {
local dist=_dist/$pkgname-$version
mkdir -p $DESTDIR/usr/{bin,share/$pkgname}
vcopy "$dist/$pkgname $dist/*.ja $dist/*.ini $dist/chrome" \
usr/share/$pkgname
ln -s ../share/$pkgname/$pkgname $DESTDIR/usr/bin/$pkgname
vlicense LICENSE
}