summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d4602c38e889812b9018e20ec666f2712b1e3cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Matt Harrison <matt@mistbyte.com>
# This PKGBUILD is maintained at https://github.com/matt-h/aur-pkgbuilds/tree/master/casperjs

pkgname=casperjs
pkgver=1.0.3
pkgrel=1
pkgdesc="a browser navigation scripting & testing utility written in Javascript on top of PhantomJS."
arch=('any')
url="http://casperjs.org/"
license=('MIT')
depends=('python' 'phantomjs')
optdepends=('ruby')
makedepends=()
conflicts=()
provides=()
source=("https://github.com/n1k0/${pkgname}/tarball/${pkgver}")
sha256sums=('4fe2759f725aa855a404dbcc2e47d9a7551304885aeaffcfef6866a89744fa5e')


package() {
  install -d "$pkgdir/opt/"
  cp -dpr --no-preserve=ownership "$srcdir/n1k0-casperjs-76fc831" "$pkgdir/opt/$pkgname"
  install -d "$pkgdir/usr/bin"
  ln -sf /opt/$pkgname/bin/$pkgname $pkgdir/usr/bin/$pkgname
  install -Dm644 "$srcdir/n1k0-casperjs-76fc831/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}