upg glib-networking
add composer
This commit is contained in:
parent
f3d589f83a
commit
4a90e9e37f
7 changed files with 151 additions and 17 deletions
67
composer/PKGBUILD
Normal file
67
composer/PKGBUILD
Normal file
|
@ -0,0 +1,67 @@
|
|||
#!/usr/bin/bash
|
||||
# JOBoRun : Jwm OpenBox Obarun RUNit
|
||||
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
||||
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
||||
# Website : https://pozol.eu
|
||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=composer
|
||||
pkgver=2.7.7
|
||||
pkgrel=01
|
||||
pkgdesc="Dependency Manager for PHP"
|
||||
url='https://getcomposer.org/'
|
||||
makedepends=(git php)
|
||||
source=("${pkgname}::git+https://github.com/composer/composer.git#tag=${pkgver}"
|
||||
"${pkgname}-${pkgver}.phar::https://getcomposer.org/download/${pkgver}/composer.phar")
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
|
||||
php "${srcdir}/${pkgname}-${pkgver}.phar" install --no-interaction --no-dev --no-progress --prefer-dist
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
php -d phar.readonly=Off bin/compile
|
||||
# Rename to generate correct completion
|
||||
mv composer.phar composer
|
||||
chmod +x composer
|
||||
./composer completion bash > completion.bash
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}"
|
||||
|
||||
mkdir integration-test
|
||||
cd integration-test
|
||||
|
||||
"${srcdir}/${pkgname}/composer" init \
|
||||
--no-interaction \
|
||||
--type=project \
|
||||
--name='archlinux/test' \
|
||||
--description='Composer Test Project' \
|
||||
--license='GPL-3.0-or-later' \
|
||||
--require='symfony/console:*'
|
||||
"${srcdir}/${pkgname}/composer" update --no-interaction --no-progress --prefer-dist
|
||||
"${srcdir}/${pkgname}/composer" validate --no-interaction
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
depends=('php' 'unzip')
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
install -Dm755 composer "${pkgdir}/usr/bin/composer"
|
||||
install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/composer"
|
||||
}
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=('MIT')
|
||||
|
||||
sha256sums=(b48e2e0e6ca7bd0bea92d076b86c8ddf6f24e0bd3fbf542602e705b2e1353cc2 # composer
|
||||
aab940cd53d285a54c50465820a2080fcb7182a4ba1e5f795abfb10414a4b4be) # composer-2.7.7.phar
|
||||
|
||||
## 7c0e25873d7abad7365a99ca687727196a9fce8704e20085136a48a9d84d609b composer-2.7.7-01-x86_64.pkg.tar.lz
|
||||
|
57
composer/PKGBUILD-arch
Normal file
57
composer/PKGBUILD-arch
Normal file
|
@ -0,0 +1,57 @@
|
|||
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
|
||||
|
||||
pkgname=composer
|
||||
pkgver=2.7.7
|
||||
pkgrel=1
|
||||
pkgdesc="Dependency Manager for PHP"
|
||||
arch=('any')
|
||||
license=('MIT')
|
||||
url='https://getcomposer.org/'
|
||||
depends=('php' 'unzip')
|
||||
makedepends=('git')
|
||||
source=("${pkgname}::git+https://github.com/composer/composer.git#tag=${pkgver}"
|
||||
"${pkgname}-${pkgver}.phar::https://getcomposer.org/download/${pkgver}/composer.phar")
|
||||
sha256sums=('b48e2e0e6ca7bd0bea92d076b86c8ddf6f24e0bd3fbf542602e705b2e1353cc2'
|
||||
'06e4c4bc6d32b8975174f4f4a0a93476d8907da92a1484c5a8ef138897a760e1')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
|
||||
php "${srcdir}/${pkgname}-${pkgver}.phar" install --no-interaction --no-dev --no-progress --prefer-dist
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
|
||||
php -d phar.readonly=Off bin/compile
|
||||
# Rename to generate correct completion
|
||||
mv composer.phar composer
|
||||
chmod +x composer
|
||||
./composer completion bash > completion.bash
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}"
|
||||
|
||||
mkdir integration-test
|
||||
cd integration-test
|
||||
|
||||
"${srcdir}/${pkgname}/composer" init \
|
||||
--no-interaction \
|
||||
--type=project \
|
||||
--name='archlinux/test' \
|
||||
--description='Composer Test Project' \
|
||||
--license='GPL-3.0-or-later' \
|
||||
--require='symfony/console:*'
|
||||
"${srcdir}/${pkgname}/composer" update --no-interaction --no-progress --prefer-dist
|
||||
"${srcdir}/${pkgname}/composer" validate --no-interaction
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
install -Dm755 composer "${pkgdir}/usr/bin/composer"
|
||||
install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/composer"
|
||||
}
|
||||
##
|
1
composer/clean
Normal file
1
composer/clean
Normal file
|
@ -0,0 +1 @@
|
|||
rm -rvf {src,pkg,composer,composer*.phar}
|
4
composer/deps
Normal file
4
composer/deps
Normal file
|
@ -0,0 +1,4 @@
|
|||
php
|
||||
git
|
||||
|
||||
|
6
composer/time
Normal file
6
composer/time
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
real 0m20.685s
|
||||
user 0m14.992s
|
||||
sys 0m4.424s
|
||||
|
|
@ -7,16 +7,18 @@
|
|||
|
||||
pkgname=glib-networking
|
||||
pkgver=2.80.0
|
||||
pkgrel=01
|
||||
pkgrel=02
|
||||
epoch=1
|
||||
pkgdesc="Network extensions for GLib w/o systemd"
|
||||
url="https://gitlab.gnome.org/GNOME/glib-networking"
|
||||
depends=(glib2 glibc libproxy gnutls gsettings-desktop-schemas)
|
||||
makedepends=(meson git libxml2)
|
||||
depends=(glib2 glibc libproxy gnutls)
|
||||
makedepends=(meson git libxml2 gsettings-desktop-schemas)
|
||||
checkdepends=(ca-certificates)
|
||||
optdepends=('gsettings-desktop-schemas: GNOME integration')
|
||||
# options=(debug) ## uncomment this line to have the debug pkg produced
|
||||
_commit=3ae624d21b586ec33543004b037fd343042cb04b # tags/2.80.0^0
|
||||
source=("git+https://gitlab.gnome.org/GNOME/glib-networking.git#commit=$_commit")
|
||||
#_commit=3ae624d21b586ec33543004b037fd343042cb04b # tags/2.80.0^0
|
||||
#source=("git+https://gitlab.gnome.org/GNOME/glib-networking.git#commit=$_commit")
|
||||
source=("git+https://gitlab.gnome.org/GNOME/glib-networking.git#tag=${pkgver/[a-z]/.&}")
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
|
@ -52,6 +54,8 @@ arch=(x86_64)
|
|||
|
||||
license=(LGPL-2.1-or-later)
|
||||
|
||||
sha256sums=(SKIP)
|
||||
b2sums=('819f574bd8e43e24e3e4c2248a44bb4882aa402c0c8c836b1d054b7d7da0d7f17428c64f8192185fa86575cf431ce895071b5ae22f26feea3c19ec7e5b74251d')
|
||||
sha256sums=(4dce76a3b5830ceb35f1fc3123e7c85e0b2f60e04cc56ae1a89451abd5b3012d) # glib-networking
|
||||
|
||||
## 521da8843fbe1089993157a76d6ca55e7f76adcee4196bf240adbd4a6e2b43ce glib-networking-1_2.80.0-02-x86_64.pkg.tar.lz
|
||||
|
||||
## 522ad9376c69eb1a626a8b0f2720ed67d624530d1e46452c1951599e2c6018f3 glib-networking-1:2.80.0-01-x86_64.pkg.tar.lz
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
pkgname=glib-networking
|
||||
pkgver=2.80.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
epoch=1
|
||||
pkgdesc="Network extensions for GLib"
|
||||
url="https://gitlab.gnome.org/GNOME/glib-networking"
|
||||
|
@ -13,22 +13,17 @@ depends=(
|
|||
glib2
|
||||
glibc
|
||||
gnutls
|
||||
gsettings-desktop-schemas
|
||||
libproxy
|
||||
)
|
||||
makedepends=(
|
||||
git
|
||||
gsettings-desktop-schemas
|
||||
meson
|
||||
)
|
||||
checkdepends=(ca-certificates)
|
||||
_commit=3ae624d21b586ec33543004b037fd343042cb04b # tags/2.80.0^0
|
||||
source=("git+https://gitlab.gnome.org/GNOME/glib-networking.git#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd glib-networking
|
||||
git describe --tags | sed -r 's/\.([a-z])/\1/;s/([a-z])\./\1/;s/[^-]*-g/r&/;s/-/+/g'
|
||||
}
|
||||
optdepends=('gsettings-desktop-schemas: GNOME integration')
|
||||
source=("git+https://gitlab.gnome.org/GNOME/glib-networking.git#tag=${pkgver/[a-z]/.&}")
|
||||
b2sums=('819f574bd8e43e24e3e4c2248a44bb4882aa402c0c8c836b1d054b7d7da0d7f17428c64f8192185fa86575cf431ce895071b5ae22f26feea3c19ec7e5b74251d')
|
||||
|
||||
prepare() {
|
||||
cd glib-networking
|
||||
|
|
Loading…
Reference in a new issue