blob: 6e8ad12b314d5f7a31d96cba5c6452bdd4e3628b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Jah Way <jahway603 at protonmail dot com>
# Previous Maintainer: Alad Wenter <alad@archlinux.org>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=asoundconf
epoch=1
pkgver=1.2
_commit=55cdf2e78b7f28ee1808346e5d4e32f7e95618dc # 1.2
pkgrel=9
pkgdesc="utility to read and change the user's ALSA library configuration"
arch=('any')
url="https://bitbucket.org/stativ/asoundconf"
license=('GPL')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
optdepends=('python-gobject: asoundconf-gtk GUI'
'gtk3: for GUI')
source=("git+https://bitbucket.org/stativ/asoundconf.git#commit=$_commit"
'0001-python3-syntax.patch'
'0002-python3-spaces.patch'
'0003-python3-gobject.patch')
sha256sums=('SKIP'
'7a93b1b05615ea73172e8d7a017d2557dbdaa3d34c51d91d46961c5e85f0d2af'
'dfde8ccc2d57fee3132a3f7b58858300765e56c5a165e605fc52e8c7550bbcbf'
'ae7bf3c388e1e6a45f6e0fcd44350d9e5bffb2453e2f397470dab9175ccc1072')
prepare() {
cd "$pkgname"
patch -p1 < "$srcdir"/0001-python3-syntax.patch
patch -p1 < "$srcdir"/0002-python3-spaces.patch
patch -p1 < "$srcdir"/0003-python3-gobject.patch
}
# implementing https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
# vim:set ts=2 sw=2 et:
|