diff options
author | James An | 2018-03-17 05:20:30 -0400 |
---|---|---|
committer | James An | 2018-03-17 05:20:30 -0400 |
commit | a1ce2836702411095492e91e931c36d36320f4c8 (patch) | |
tree | 125ec3c2c4cc25b26df63750c48004eab068b2fb /PKGBUILD | |
parent | 90cf81ce1346e7efda58771181181564ed043dad (diff) | |
download | aur-terminus-git.tar.gz |
Changed PKGBUILD to VCS variant and fixed pkgver() to produce the same output as $(terminus --version).
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
@@ -1,41 +1,46 @@ # Maintainer: James An <james@jamesan.ca> -pkgname=terminus -pkgver=1.7.1 +pkgname=terminus-git +_pkgname=${pkgname%-git} +pkgver=1.7.2_dev pkgrel=1 pkgdesc="The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform https://pantheon.io" arch=('any') -url="https://github.com/pantheon-systems/$pkgname" +url="https://github.com/pantheon-systems/$_pkgname" license=('MIT') depends=('php' 'composer' 'git') optdepends=('drush: Useful to run incompatible-with-Terminus Drush commands' 'wp-cli: Useful to run incompatible-with-Terminus WP-CLI commands') -source=("https://github.com/pantheon-systems/$pkgname/archive/$pkgver.tar.gz") -md5sums=('2752d60abe3c3e523c249ccfb2ff4a30') +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +source=("$_pkgname"::"git+https://github.com/pantheon-systems/$_pkgname.git") +md5sums=('SKIP') pkgver() { - curl "https://api.github.com/repos/pantheon-systems/$pkgname/releases/latest" | grep tag_name | cut -f4 -d\" + cd "$_pkgname" + + grep TERMINUS_VERSION config/constants.yml | cut -f2 -d\' | tr '-' '_' } prepare() { - cd "$pkgname-$pkgver" + cd "$_pkgname" composer install --no-interaction --no-dev --prefer-dist } check() { - cd "$pkgname-$pkgver" + cd "$_pkgname" scripts/test.sh } package() { - cd "$pkgname-$pkgver" + cd "$_pkgname" install -Dm644 LICENSE.txt "$pkgdir/usr/share/license/$pkgname/LICENSE" install -d -m755 "$pkgdir/usr/share/webapps/$pkgname" cp -at "$pkgdir/usr/share/webapps/$pkgname" assets bin composer.json composer.lock config src templates vendor install -d -m755 "$pkgdir/usr/bin" - ln --symbolic "/usr/share/webapps/$pkgname/bin/$pkgname" "$pkgdir/usr/bin/$pkgname" + ln --symbolic "/usr/share/webapps/$pkgname/bin/$_pkgname" "$pkgdir/usr/bin/$_pkgname" } |