ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

48 lines
1.4 KiB
Plaintext

# Contributor: Aaron Hurt <ahurt@ena.com>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=pacparser
pkgver=1.4.3
pkgrel=1
pkgdesc="A library to parse proxy auto-config (PAC) files"
url="https://pacparser.manugarg.com/"
arch="all"
license="LGPL-3.0-or-later"
makedepends="bash python3-dev py3-setuptools"
subpackages="py3-$pkgname-pyc:pyc py3-$pkgname:pymod $pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/manugarg/pacparser/archive/refs/tags/v$pkgver.tar.gz
spidermonkey-make.patch
"
# secfixes:
# 1.4.0-r0:
# - CVE-2019-25087
prepare() {
default_prepare
echo "VERSION=v$pkgver" > src/version.mk
}
build() {
# There's some concurrency problem, so we must disable parallel build.
# https://github.com/pacparser/pacparser/issues/27
PYTHON=python3 make -j1 -C src pactester pymod
}
package() {
make -C src DESTDIR="$pkgdir" install install-pymod
}
pymod() {
depends="python3"
replaces="py-pymod" # Backwards compatibility
provides="py-pymod=$pkgver-r$pkgrel" # Backwards compatibility
amove usr/lib/python*
}
sha512sums="
cc0d6c0a7b1fd9d55dece6c4ad80711d3d1055a0cde120dbb6e8274508631b325e7d876545b40ca05cefc6dce15aa1476e5b2936527e3183ad86114e4cd661a5 pacparser-1.4.3.tar.gz
99753cfb450e685d866d80e33c58320584c15ec625a0745d4ea2b9d3a6eadb2308563d1b86bdc656a66d255b58a426a89cd5f14ea3b472d04a70a99ef3c1a2bf spidermonkey-make.patch
"