diff options
author | Ted Alff | 2020-05-07 17:05:55 -0400 |
---|---|---|
committer | Ted Alff | 2020-05-07 17:05:55 -0400 |
commit | 8a695370925396772e104e6eb7fc60dac1582936 (patch) | |
tree | 006b475e4696ca27329de861163a85061bfd8803 | |
parent | f8196cd31adb2522d0a74b4992745455713a5d89 (diff) | |
download | aur-8a695370925396772e104e6eb7fc60dac1582936.tar.gz |
Don't require python-dataclasses: part of core python since 3.7
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 14 insertions, 6 deletions
@@ -1,18 +1,19 @@ pkgbase = python-screeninfo pkgdesc = Python library to fetch location and size of physical screens pkgver = 0.6.5 - pkgrel = 2 + pkgrel = 3 url = https://github.com/rr-/screeninfo arch = any license = MIT makedepends = python-setuptools depends = python - depends = python-dataclasses optdepends = libxinerama: xinerama backend optdepends = libxrandr: randr backend optdepends = libdrm: experimental DRM backend source = python-screeninfo-0.6.5.tar.gz::https://github.com/rr-/screeninfo/archive/0.6.5.tar.gz + source = dont_require_dataclasses.patch::https://github.com/rr-/screeninfo/commit/3dcaa513732f4dec236187ef227580975ce5f01c.patch sha256sums = 06ef4146276bd4f8a3635fff44324c0a4e86b200155dea089da96ae4cd1741a6 + sha256sums = 18c8f4be21d4a3413c63e4e3d61c255615b23d86706c880ab05139b6525721c8 pkgname = python-screeninfo @@ -2,18 +2,25 @@ pkgname=python-screeninfo pkgver=0.6.5 -pkgrel=2 +pkgrel=3 pkgdesc="Python library to fetch location and size of physical screens" arch=('any') url="https://github.com/rr-/screeninfo" license=('MIT') -depends=('python' 'python-dataclasses') +depends=('python') optdepends=('libxinerama: xinerama backend' 'libxrandr: randr backend' 'libdrm: experimental DRM backend') makedepends=('python-setuptools') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rr-/${pkgname/python-/}/archive/${pkgver}.tar.gz") -sha256sums=('06ef4146276bd4f8a3635fff44324c0a4e86b200155dea089da96ae4cd1741a6') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rr-/${pkgname/python-/}/archive/${pkgver}.tar.gz" + 'dont_require_dataclasses.patch::https://github.com/rr-/screeninfo/commit/3dcaa513732f4dec236187ef227580975ce5f01c.patch') +sha256sums=('06ef4146276bd4f8a3635fff44324c0a4e86b200155dea089da96ae4cd1741a6' + '18c8f4be21d4a3413c63e4e3d61c255615b23d86706c880ab05139b6525721c8') + +prepare() { + cd "${srcdir}/${pkgname/python-/}-${pkgver}" + patch -Np1 -i ../dont_require_dataclasses.patch +} package() { cd "${srcdir}/${pkgname/python-/}-${pkgver}" |