jobextra/gyp/PKGBUILD
2023-10-31 18:54:25 +02:00

59 lines
1.7 KiB
Bash

#!/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=gyp
pkgver=20230914.a03d7413
pkgrel=01
pkgdesc='"Generate Your Projects" Meta-Build system'
url="https://gyp.gsrc.io/"
depends=(python-six ninja)
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)
pkgver() {
cd $pkgname
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() {
cd $pkgname
# Python 3 fixes from Fedora
git apply -3 ../*.patch
}
build() {
cd $pkgname
python -m build --wheel --no-isolation
}
package() {
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(custom:BSD)
sha256sums=(SKIP
7fb04acbac92a1d173c2bc3022b7814a711427225a7fd32912dc60f1e1a6746e # 0001-gyp-python38.patch
8a9f1a413b943dd469f981ee5fa7b7cc372e3cd9e9f0ecf9640d4f0f6bb29647 # 0002-gyp-fix-cmake.patch
dda2c6717d52a9dd53ce5b4985115f947dcca2bce3a207bd9c543976c41decf5) # 0003-gyp-fips.patch
## 34f983b5646ed2fdbee85877b3cfa500a809359277622a8f2ea1579c2cd01c83 gyp-20230914.a03d7413-01-x86_64.pkg.tar.lz