This commit is contained in:
joborun linux 2022-09-18 12:47:11 +03:00
parent 4bbc89d903
commit 3ee3bfbfc1
6 changed files with 335 additions and 0 deletions

View File

@ -0,0 +1,41 @@
#!/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=python-cairo
pkgver=1.21.0
pkgrel=01
pkgdesc="Python bindings for the cairo graphics library"
arch=('x86_64')
url="https://pycairo.readthedocs.io/en/latest/"
depends=(cairo python)
makedepends=(python-setuptools)
checkdepends=(python-pytest)
source=(https://github.com/pygobject/pycairo/releases/download/v$pkgver/pycairo-$pkgver.tar.gz{,.sig})
build() {
cd pycairo-$pkgver
python setup.py build
}
#check() {
# cd pycairo-$pkgver
# python setup.py test
#}
package() {
cd pycairo-$pkgver
python setup.py install --root="$pkgdir" --skip-build --optimize=1
}
#---- license gpg-key sha256sums ----
license=('LGPL2.1' 'MPL')
validpgpkeys=(0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC) # Christoph Reiter <reiter.christoph@gmail.com>
sha256sums=(251907f18a552df938aa3386657ff4b5a4937dde70e11aa042bc297957f4b74b # pycairo-1.21.0.tar.gz
85a49d1e1fc29d3f57698bf3acafbaa2c4327dbe4de221de9b1686a83e695593) # pycairo-1.21.0.tar.gz.sig

View File

@ -0,0 +1,102 @@
#!/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=python-setuptools
pkgver=61.3.0
pkgrel=01
epoch=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
url="https://pypi.org/project/setuptools/"
depends=('python-appdirs' 'python-jaraco.text' 'python-more-itertools' 'python-nspektr'
'python-ordered-set' 'python-packaging' 'python-pyparsing' 'python-tomli'
'python-validate-pyproject')
makedepends=('git' 'python-setuptools')
checkdepends=('python-jaraco.envs' 'python-jaraco.path' 'python-mock' 'python-pip' 'python-pip-run'
'python-pytest-fixture-config' 'python-pytest-flake8' 'python-pytest-virtualenv'
'python-wheel' 'python-paver' 'python-pytest-cov' 'python-sphinx' 'python-build'
'python-ini2toml' 'python-tomli-w')
provides=('python-distribute')
replaces=('python-distribute')
source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz"
system-validate-pyproject.patch)
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
prepare() {
cd setuptools-$pkgver
patch -p1 -i ../system-validate-pyproject.patch
rm -r {pkg_resources,setuptools}/{extern,_vendor} setuptools/config/_validate_pyproject
# Upstream devendoring logic is badly broken, see:
# https://bugs.archlinux.org/task/58670
# https://github.com/pypa/pip/issues/5429
# https://github.com/pypa/setuptools/issues/1383
# The simplest fix is to simply rewrite import paths to use the canonical
# location in the first place
for _module in setuptools pkg_resources '' ; do
find . -name \*.py -exec sed -i \
-e 's/from '$_module.extern' import/import/' \
-e 's/from '$_module.extern'\./from /' \
-e 's/import '$_module.extern'\./import /' \
-e "s/__import__('$_module.extern./__import__('/" \
-e 's/from \.\.extern\./from /' \
{} +
done
# Remove post-release tag since we are using stable tags
sed -e '/tag_build = .post/d' \
-e '/tag_date = 1/d' \
-i setup.cfg
# Fix shebang
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
}
build() {
cd setuptools-$pkgver
python setup.py build
}
## 14 tests fail on this Arch build, this is the 3rd build in a week, who knows
## what tweaks they must have done so it passes through their container ...
## most likely there will be a few more takes before this is fully functional again
## So we skip the check all together for this time
#
check() { (
# Workaround UTF-8 tests by setting LC_CTYPE
export LC_CTYPE=en_US.UTF-8
# https://github.com/pypa/setuptools/pull/810
export PYTHONDONTWRITEBYTECODE=1
cd setuptools-$pkgver
SETUPTOOLS_USE_DISTUTILS=stdlib python -m pytest \
--deselect setuptools/tests/test_distutils_adoption.py \
--deselect setuptools/tests/integration/test_pip_install_sdist.py \
--deselect setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests \
--deselect setuptools/tests/test_virtualenv.py \
--deselect "setuptools/tests/test_editable_install.py::test_editable_with_pyproject[__import__('setuptools').setup()]" \
--deselect setuptools/tests/config/test_apply_pyprojecttoml.py::test_apply_pyproject_equivalent_to_setupcfg \
--deselect setuptools/tests/config/test_pyprojecttoml.py::test_invalid_example
)}
package() {
cd setuptools-$pkgver
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
}
#---- license gpg-key sha256sums ----
license=('PSF')
sha256sums=(63bb2671c3a4dd67949e9c8ff46aa06939c91d960e562cba68498a7ffb992b0a # python-setuptools-61.3.0.tar.gz
86af4e168a76402af4df65801f6a756f4953ddc7ffc79f1845966772fd13ee1e) # system-validate-pyproject.patch

45
swig/PKGBUILD-arch Normal file
View File

@ -0,0 +1,45 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=swig
pkgver=4.0.2
pkgrel=5
pkgdesc="Generate scripting interfaces to C/C++ code"
arch=('x86_64')
url="http://www.swig.org/"
license=('custom')
depends=('pcre' 'gcc-libs')
checkdepends=('ruby' 'python' 'java-environment' 'tcl' 'php' 'lua' 'r' 'go' 'boost')
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
jdk17.patch
python310.patch)
sha512sums=('05e7da70ce6d9a733b96c0bcfa3c1b82765bd859f48c74759bbf4bb1467acb1809caa310cba5e2b3280cd704fca249eaa0624821dffae1d2a75097c7f55d14ed'
'06671202b6a1f82e96166ada7982b9dd70ae5365dc90c4f24e81596963f7bd3960913f2eca5250ad76bee4b2e51f10ed922595722036e3da9da63d6aa988cb3e'
'3de6484d920d8ecf042102d40af3a375ecb1ead3c4e0bc45ae63633e5fd652f52e1938108f747514a654a19d93a783afe2968b141be56957f438162263d62d8a')
prepare() {
cd ${pkgname}-${pkgver}
patch -Np1 -i ../jdk17.patch
# https://github.com/swig/swig/issues/2044
patch -Np1 -i ../python310.patch
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
check() {
cd ${pkgname}-${pkgver}
make check PY3=y
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
install -D -m644 LICENSE-UNIVERSITIES "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES
}

View File

@ -0,0 +1,32 @@
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=xf86-input-vmmouse
pkgver=13.1.0
pkgrel=6
pkgdesc="X.org VMWare Mouse input driver"
arch=(x86_64)
license=('custom')
url="https://xorg.freedesktop.org/"
depends=('systemd-libs')
makedepends=('xorg-server-devel' 'X-ABI-XINPUT_VERSION=24.4' 'xorgproto')
conflicts=('xorg-server<21.1.1' 'X-ABI-XINPUT_VERSION<24' 'X-ABI-XINPUT_VERSION>=25')
groups=('xorg-drivers')
source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig})
sha256sums=('0af558957ac1be1b2863712c2475de8f4d7f14921fd01ded2e2fde4921b19319'
'SKIP')
validpgpkeys=('90D027AEAF33CBABC140735BC1F5D3CDF5176580') # Thomas Hellstrom (VMware) <thellstrom@vmware.com>
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr \
--with-udev-rules-dir=/usr/lib/udev/rules.d
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
rm -rfv "${pkgdir}"/usr/{lib,share}/hal
}

View File

@ -0,0 +1,46 @@
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: buddabrod <buddabrod@gmail.com>
pkgname=xf86-video-nouveau
pkgver=1.0.17
pkgrel=2
pkgdesc="Open Source 3D acceleration driver for nVidia cards"
arch=('x86_64')
url="https://nouveau.freedesktop.org/"
license=('GPL')
depends=('systemd-libs' 'mesa')
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'systemd')
conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
groups=('xorg-drivers')
source=(https://xorg.freedesktop.org/archive/individual/driver/$pkgname-$pkgver.tar.bz2{,.sig}
xorg-server-21.1.diff)
sha512sums=('adba58ba5298d1a5b3f9f8540f9ef2cb2e10e47bba8e374103ec2e1f92e915f5f4393ed0021168cd649646e12315135a1efcdf77e8fb1648e1295914d87279b2'
'SKIP'
'6c1bc0a2197a0fdaa3f669ce96ab2bc0167642168da01a86c712e1a77692244ad7b68a5c71d47b62abb6fa9b74f0495226133b7eff4badbd6dda56994bba74c8')
validpgpkeys=('B97BD6A80CAC4981091AE547FE558C72A67013C3') # Maarten Lankhorst <maarten@debian.org>
validpgpkeys+=('C9FA6B58BC799041500F769AC5469FB8758F9C2B') # "Lyude Paul <lyude@redhat.com>"
validpgpkeys+=('BFB9B0C276D5767C710086EFB178BE4EA075DE07') # "Ilia Mirkin <imirkin@alum.mit.edu>"
prepare() {
cd $pkgname-$pkgver
patch -np1 -i ../xorg-server-21.1.diff
}
build() {
cd $pkgname-$pkgver
# Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
# With them, module fail to load with undefined symbol.
# See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
export CFLAGS=${CFLAGS/-fno-plt}
export CXXFLAGS=${CXXFLAGS/-fno-plt}
export LDFLAGS=${LDFLAGS/,-z,now}
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}

View File

@ -0,0 +1,69 @@
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Paul Mattal <paul@mattal.com>
# Contributor: Juergen Hoetzel <juergen@hoetzel.info>
pkgname=xf86-video-openchrome
_commit=15c868a # 7 digits # = 0.6.0 RC1
pkgver=0.6.0.r754.g15c868a
#pkgver=0.6.0
pkgrel=1
pkgdesc="X.Org Openchrome drivers"
arch=(x86_64)
license=('custom')
url="https://www.freedesktop.org/wiki/Openchrome/"
depends=('libdrm' 'libxvmc' 'systemd-libs')
optdepends=('unichrome-dri')
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'systemd' 'libxv'
'git')
conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26'
'xf86-video-via' 'xf86-video-unichrome' 'openchrome')
replaces=('openchrome' 'xf86-video-via')
groups=('xorg-drivers')
options=('!emptydirs')
#source=(https://xorg.freedesktop.org/archive/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig})
#sha256sums=('da2975c6379358de52c1257710c67eb59139a7f0a1cd28d00cc64cc3e1c02f75'
# 'SKIP')
source=("git://anongit.freedesktop.org/openchrome/xf86-video-openchrome#commit=${_commit}")
sha256sums=('SKIP')
validpgpkeys=('CDA92E38A7A7A82237E9AB61C922784178BFFDB0') # "Kevin Brace <kevinbrace@gmx.com>"
pkgver() {
cd $pkgname
#git describe --long | sed 's/-/+/g'
# git describe --long | sed "s/openchrome-//;s/-/./g"
git describe --long | sed 's/^xf86-video-openchrome-//;s/\([^-]*-g\)/r\1/;s/-/./g'
# git describe --long | sed "s/openchrome-//;s/0.5/0.5.200/;s/-/+/g"
# git describe --long | sed "s/openchrome-//;s/0.5/0.5.0/;s/-/+/g"
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd ${pkgname} #-${pkgver}
# Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
# With them, module fail to load with undefined symbol.
# See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
export CFLAGS=${CFLAGS/-fno-plt}
export CXXFLAGS=${CXXFLAGS/-fno-plt}
export LDFLAGS=${LDFLAGS/,-z,now}
./configure --prefix=/usr
make
}
check() {
cd ${pkgname} #-${pkgver}
make check
}
package() {
cd ${pkgname} #-${pkgver}
make DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}