summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10e9b2d247aae0ee7b45f25182d4579c00f18f9e (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
27
28
29
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Please report issues at https://github.com/sanduhrs/arch-aur-robo

_pkgname=robo
pkgname=${_pkgname}
pkgrel=1
pkgver=4.0.6
pkgdesc="Modern task runner for PHP."
arch=("any")
url="http://robo.li"
license=("MIT")
depends=("php")
makedepends=("composer" "git")
source=("${_pkgname}"::"git+https://github.com/Codegyre/Robo.git#tag=${pkgver}")
sha512sums=('SKIP')

build() {
  cd "${srcdir}/${_pkgname}"
  composer install --no-interaction
}

package() {
  cd "${srcdir}"
  install -D -m 644 "${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
  install -d "${pkgdir}/usr/share/webapps/${_pkgname}"
  cp -r "${_pkgname}" "${pkgdir}/usr/share/webapps/"
  install -d "${pkgdir}/usr/bin"
  ln -s "/usr/share/webapps/${_pkgname}/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}