upg gyp
This commit is contained in:
parent
87d7e7946f
commit
fa11cca96b
26
gyp/PKGBUILD
26
gyp/PKGBUILD
|
@ -6,23 +6,25 @@
|
||||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||||
|
|
||||||
pkgname=gyp
|
pkgname=gyp
|
||||||
pkgver=20220404.9ecf45e3
|
pkgver=20230914.a03d7413
|
||||||
pkgrel=02
|
pkgrel=01
|
||||||
pkgdesc='"Generate Your Projects" Meta-Build system'
|
pkgdesc='"Generate Your Projects" Meta-Build system'
|
||||||
url="https://gyp.gsrc.io/"
|
url="https://gyp.gsrc.io/"
|
||||||
depends=(python-six ninja)
|
depends=(python-six ninja)
|
||||||
makedepends=(git python-setuptools)
|
makedepends=(git python-build python-installer python-setuptools python-wheel)
|
||||||
_commit=9ecf45e37677743503342ee4c6a76eaee80e4a7f # changes/24/3562924/3
|
_commit=a03d7413becefc8d55c8aa3df58b55b9bd0e9052 # changes/05/4858505/3
|
||||||
source=("git+https://chromium.googlesource.com/external/gyp#commit=$_commit"
|
source=("git+https://chromium.googlesource.com/external/gyp#commit=$_commit"
|
||||||
0001-gyp-python38.patch
|
0001-gyp-python38.patch
|
||||||
0002-gyp-fix-cmake.patch
|
0002-gyp-fix-cmake.patch
|
||||||
0003-gyp-fips.patch)
|
0003-gyp-fips.patch)
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd $pkgname
|
cd $pkgname
|
||||||
|
|
||||||
# Commit date + short rev
|
local commit_date="$(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD)"
|
||||||
echo $(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD).$(git rev-parse --short HEAD)
|
local short_rev="$(git rev-parse --short HEAD)"
|
||||||
|
|
||||||
|
echo $commit_date.$short_rev
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
@ -34,12 +36,12 @@ prepare() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname
|
cd $pkgname
|
||||||
python setup.py build
|
python -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname
|
cd $pkgname
|
||||||
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
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,4 +56,4 @@ sha256sums=(SKIP
|
||||||
8a9f1a413b943dd469f981ee5fa7b7cc372e3cd9e9f0ecf9640d4f0f6bb29647 # 0002-gyp-fix-cmake.patch
|
8a9f1a413b943dd469f981ee5fa7b7cc372e3cd9e9f0ecf9640d4f0f6bb29647 # 0002-gyp-fix-cmake.patch
|
||||||
dda2c6717d52a9dd53ce5b4985115f947dcca2bce3a207bd9c543976c41decf5) # 0003-gyp-fips.patch
|
dda2c6717d52a9dd53ce5b4985115f947dcca2bce3a207bd9c543976c41decf5) # 0003-gyp-fips.patch
|
||||||
|
|
||||||
## fb6c543583b098d704d98b7db56727fabf4a9193dc7ff55e723e0d367b847c32 gyp-20220404.9ecf45e3-02-x86_64.pkg.tar.lz
|
## 34f983b5646ed2fdbee85877b3cfa500a809359277622a8f2ea1579c2cd01c83 gyp-20230914.a03d7413-01-x86_64.pkg.tar.lz
|
||||||
|
|
|
@ -1,29 +1,42 @@
|
||||||
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||||
|
|
||||||
pkgname=gyp
|
pkgname=gyp
|
||||||
pkgver=20220404.9ecf45e3
|
pkgver=20230914.a03d7413
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc='"Generate Your Projects" Meta-Build system'
|
pkgdesc="Generate Your Projects meta-build system"
|
||||||
url="https://gyp.gsrc.io/"
|
url="https://gyp.gsrc.io/"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
license=(custom:BSD)
|
license=(custom:BSD)
|
||||||
depends=(python-six ninja)
|
depends=(
|
||||||
makedepends=(git python-setuptools)
|
ninja
|
||||||
_commit=9ecf45e37677743503342ee4c6a76eaee80e4a7f # changes/24/3562924/3
|
python-six
|
||||||
source=("git+https://chromium.googlesource.com/external/gyp#commit=$_commit"
|
)
|
||||||
0001-gyp-python38.patch
|
makedepends=(
|
||||||
0002-gyp-fix-cmake.patch
|
git
|
||||||
0003-gyp-fips.patch)
|
python-build
|
||||||
sha256sums=('SKIP'
|
python-installer
|
||||||
'7fb04acbac92a1d173c2bc3022b7814a711427225a7fd32912dc60f1e1a6746e'
|
python-setuptools
|
||||||
'8a9f1a413b943dd469f981ee5fa7b7cc372e3cd9e9f0ecf9640d4f0f6bb29647'
|
python-wheel
|
||||||
'dda2c6717d52a9dd53ce5b4985115f947dcca2bce3a207bd9c543976c41decf5')
|
)
|
||||||
|
_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() {
|
pkgver() {
|
||||||
cd gyp
|
cd gyp
|
||||||
|
|
||||||
# Commit date + short rev
|
local commit_date="$(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD)"
|
||||||
echo $(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD).$(git rev-parse --short HEAD)
|
local short_rev="$(git rev-parse --short HEAD)"
|
||||||
|
|
||||||
|
echo $commit_date.$short_rev
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
@ -35,11 +48,13 @@ prepare() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd gyp
|
cd gyp
|
||||||
python setup.py build
|
python -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd gyp
|
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
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# vim:set sw=2 sts=-1 et:
|
||||||
|
|
Loading…
Reference in New Issue