Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/PKGBUILD b/PKGBUILD
index 9ea5409..a80d7a6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=wp-cli
-pkgver=0.19.2
+pkgver=0.20.0
pkgrel=1
pkgdesc="A command-line tool for managing WordPress"
url="http://wp-cli.org/"
@@ -7,23 +7,18 @@ arch=('any')
license=('MIT')
depends=('php')
optdepends=()
-makedepends=()
+makedepends=('php-composer')
conflicts=()
replaces=()
backup=()
source=("https://github.com/wp-cli/wp-cli/archive/v${pkgver}.tar.gz"
"https://raw.githubusercontent.com/wp-cli/wp-cli/v${pkgver}/utils/wp-completion.bash")
-md5sums=('a1f59e3264a19e656d0e7c8223dadcce'
- '696410d404d8c0ad2e10a223302effe6')
-
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- curl -sS https://getcomposer.org/installer | php
-}
+sha256sums=('24372cb868f240ad188e1b63fa915017ba32d2da492ea24ec60d3f126c1d3168'
+ '443ca0610ccae8d2d6aceba0ec4aa7929b87ed6cf54f666afed18d663a18a395')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- php ./composer.phar install --no-interaction --prefer-dist
+ composer install --no-interaction --prefer-dist
php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --quiet
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.