-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
41 lines (34 loc) · 1.75 KB
/
PKGBUILD
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
35
36
37
38
39
40
41
#!/bin/bash
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# [ToDo]: Add files: User documentation
# [ToDo]: Add files: Tooling
# [FixMe]: Namcap warnings and errors
# Maintainer: Ross Clark <archiv8@artisteducator.com>
# Contributor: Ross Clark <archiv8@artisteducator.com>
_binname="drupal"
_cvsorg="hechoendrupal"
_pkgname="drupal-console-launcher"
pkgname=${_pkgname}
pkgver=1.9.7
pkgrel=1
pkgdesc="The Drupal Console is a suite of tools that you run on a command line interface (CLI) to generate boilerplate code and interact with a Drupal installation. This package installs the global launcher"
arch=('any')
url="http://drupalconsole.com/"
license=('GPL')
depends=('php')
makedepends=("composer")
install="${_pkgname}.install"
source=("https://github.com/${_cvsorg}/${_pkgname}/releases/download/${pkgver}/drupal.phar"
"https://raw.github.com/${_cvsorg}/${_pkgname}/${pkgver}/LICENSE.txt")
sha512sums=('ddb992e65662dbde9e48d97d5d5900e341f24da92bf1bad0cdf28690d34229d037ef02f4995c9ca83c498a84cf98e66b75d1f12206746a633f8e0db030f8ca82'
'aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957')
package() {
install -D -m644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.txt"
install -D -m755 "${srcdir}/${_binname}.phar" "${pkgdir}/usr/share/webapps/bin/${_binname}.phar"
install -d "${pkgdir}/usr/bin"
ln -s "/usr/share/webapps/bin/${_binname}.phar" "${pkgdir}/usr/bin/${_binname}"
}