blob: 0382a17f779aaa71b5b99e7bbd487c3abfecc900 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Alexander Adler <alexadler1@protonmail.com>
# Contributor: Yan Burdonsky <psyrccio@gmail.com>
# Copy your OGG|MP3|WAV noises into ~/ANoise or ~/.ANoise
pkgname=anoise
pkgver=0.0.36
pkgrel=5
pkgdesc="Ambient Noise Player. Relax or concentrate with a noise"
arch=('any')
url="https://costales.github.io/projects/anoise"
license=('GPL-3.0-or-later')
depends=(
'anoise-media'
'gst-python'
'webkit2gtk'
)
makedepends=(
'python-build'
'python-distutils-extra'
'python-installer'
'python-setuptools'
'python-wheel'
)
optdepends=(
'anoise-community-extension1: Sounds and icons from the users'
'anoise-community-extension2: Sounds and icons from the users'
'anoise-community-extension3: Sounds and icons from the users'
'anoise-community-extension4: Sounds and icons from the users'
'anoise-community-extension5: Sounds and icons from the users'
'anoise-gui: GUI for anoise'
'libappindicator-gtk3: tray icon'
)
source=("https://launchpad.net/~costales/+archive/ubuntu/$pkgname/+sourcefiles/$pkgname/$pkgver/${pkgname}_${pkgver}.tar.gz"
'setup.patch')
sha256sums=('cd6e2e1e8691b950c503b4319f7f9ecf6e66c745e5194724be0c3e026e9dd3ac'
'e561b2513e791c29d097e7eea7c83f9bbe3d993ead398e7dd0352bbb55ce451a')
prepare() {
# remove space from SRCDEST folder
mv -f "$pkgname " "$pkgname"
cd "$pkgname"
patch --forward --strip=1 --input="$srcdir/setup.patch"
# correct desktop file
sed -i "s/$pkgname.desktop.in/Ambient Noise/g" "$pkgname.desktop.in"
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
# This file is included in anoise-gui
rm "$pkgdir/usr/share/$pkgname/$pkgname.ui"
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cp -r "${pkgdir}${site_packages}/usr/share" "$pkgdir/usr/"
rm -rf "${pkgdir}${site_packages}/usr"
}
|