summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a283c3e631256862d4d3c1001f1d45407ffc6d7 (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
30
31
32
33
34
# Maintainer: Matt Harrison <matt@harrison.us.com>
# Maintained at: https://github.com/matt-h/aur-pkgbuilds or https://codeberg.org/matt/aur-pkgbuilds

pkgname=shift-cli
pkgver=0.3.1
pkgrel=1
pkgdesc="A tool to run automated tasks for maintaining your Laravel projects."
arch=('any')
url="https://github.com/laravel-shift/cli"
license=('MIT')
depends=('php')
makedepends=("php-box" "git")
_tag_commit=3880b04b1719a96a5ce023da1b31b8f8ec2d1edc
source=("${pkgname}-${pkgver}::git+${url}#commit=$_tag_commit")
b2sums=('SKIP')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  cp composer-dev.json composer.json
  composer install --no-dev --prefer-dist --no-progress --no-interaction
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  box compile --no-parallel --no-interaction
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D -m755 "builds/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}

# vim:set ts=2 sw=2 et: