jobextra/gyp/PKGBUILD

54 lines
1.6 KiB
Bash
Raw Normal View History

2022-03-31 03:01:44 +02:00
#!/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=20190716.fcd686f1
pkgrel=07
pkgdesc='"Generate Your Projects" Meta-Build system'
arch=(any)
url="https://gyp.gsrc.io/"
depends=(python ninja)
makedepends=(git python-setuptools)
_commit=fcd686f1880fa52a1ee78d3e98af1b88cb334528 # changes/82/1701782/5
source=("git+https://chromium.googlesource.com/external/gyp#commit=$_commit"
gyp-fips.patch gyp-fix-cmake.patch gyp-python38.patch gyp-python39.patch)
pkgver() {
cd $pkgname
# Commit date + short rev
echo $(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD).$(git rev-parse --short HEAD)
}
prepare() {
cd $pkgname
# Python 3 fixes from Fedora
git apply -3 ../*.patch
}
build() {
cd $pkgname
python setup.py build
}
package() {
cd $pkgname
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
}
#---- license gpg-key sha256sums ----
license=(custom:BSD)
sha256sums=(SKIP
43022909aa2f320bdc0cc5813734f42bd6ef2ac4372821bf5757f753c7a3c277 # gyp-fips.patch
8610250f946ee070c5182cc87cd23cdd9f66a47ec57a98049bb2aaae4a1e09e6 # gyp-fix-cmake.patch
6580f0f02f430f1ba4aa7e8e2d32203dcb3d6f07f1de5287d0fb33ab2ed1cc30 # gyp-python38.patch
06b9092eea1513a70f8c5213ba2dc7f550cf5ddf6ee0bb801ea0cda290e3a6f9) # gyp-python39.patch