* update gyp to 20230914.a03d7413-1

This commit is contained in:
Alexander Baldeck 2023-12-12 15:06:44 +01:00
parent bf9c42c27e
commit b1c1f88e48

View File

@ -2,29 +2,42 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgname=gyp
pkgver=20220404.9ecf45e3
pkgrel=2
pkgdesc='"Generate Your Projects" Meta-Build system'
pkgver=20230914.a03d7413
pkgrel=1
pkgdesc="Generate Your Projects meta-build system"
url="https://gyp.gsrc.io/"
arch=(any)
license=(custom:BSD)
depends=(python-six ninja)
makedepends=(git python-setuptools)
_commit=9ecf45e37677743503342ee4c6a76eaee80e4a7f # changes/24/3562924/3
source=("git+https://chromium.googlesource.com/external/gyp#commit=$_commit"
0001-gyp-python38.patch
0002-gyp-fix-cmake.patch
0003-gyp-fips.patch)
sha256sums=('SKIP'
'7fb04acbac92a1d173c2bc3022b7814a711427225a7fd32912dc60f1e1a6746e'
'8a9f1a413b943dd469f981ee5fa7b7cc372e3cd9e9f0ecf9640d4f0f6bb29647'
'dda2c6717d52a9dd53ce5b4985115f947dcca2bce3a207bd9c543976c41decf5')
depends=(
ninja
python-six
)
makedepends=(
git
python-build
python-installer
python-setuptools
python-wheel
)
_commit=a03d7413becefc8d55c8aa3df58b55b9bd0e9052 # changes/05/4858505/3
source=(
"git+https://chromium.googlesource.com/external/gyp#commit=$_commit"
0001-gyp-python38.patch
0002-gyp-fix-cmake.patch
0003-gyp-fips.patch
)
b2sums=('SKIP'
'639848a0f0eb26bc16304b9c1ef2944f5cf37b2d7367a7de34becf2ec0962ce43820a21cd6c4d839775fc2dc1440c6e94f10cfd7781c5fe2278ba497b3fbdcb9'
'f77bda072b6a3916c78c2061ceffa8b17bf1341d13509089effd3961e22cb315f68fdf749ab4a6abea37a9ecd61989ddcd75229a45d026e068bf11037ad4499c'
'61febe5fb8672c2ad4012957b1f42d2909b7adae9b9c62417c22073b7d97dfad37cb34c19839b13bea54f8ab45c068f7b121bd3b4ae62d5234611861cae73c98')
pkgver() {
cd gyp
# Commit date + short rev
echo $(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD).$(git rev-parse --short HEAD)
local commit_date="$(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD)"
local short_rev="$(git rev-parse --short HEAD)"
echo $commit_date.$short_rev
}
prepare() {
@ -36,11 +49,13 @@ prepare() {
build() {
cd gyp
python setup.py build
python -m build --wheel --no-isolation
}
package() {
cd gyp
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
}
# vim:set sw=2 sts=-1 et: