Skip to content

Instantly share code, notes, and snippets.

@francisuk1989
Created May 28, 2024 17:09
Show Gist options
  • Save francisuk1989/fd3d31e7ba5a53aedef27cfa0f0882af to your computer and use it in GitHub Desktop.
Save francisuk1989/fd3d31e7ba5a53aedef27cfa0f0882af to your computer and use it in GitHub Desktop.
Nicotine Alpine Linux
kgname=nicotine-plus
pkgver=3.3.4
pkgrel=3
pkgdesc="Graphical client for the SoulSeek peer-to-peer system"
url="https://nicotine-plus.github.io/nicotine-plus"
arch="noarch"
license="GPL-3.0-or-later"
depends="gtk4.0 mesa-gles py3-gobject3 python3 python3-gdbm"
makedepends="py3-gpep517 py3-setuptools py3-wheel gettext"
checkdepends="py3-pytest"
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
source="nicotine-plus-$pkgver.tar.gz::https://github.com/Nicotine-Plus/nicotine-plus/archive/$pkgver.tar.gz"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m pytest \
--deselect pynicotine/tests/integration/test_startup.py::StartupTest::test_gui_startup
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
lang() {
pkgdesc="Languages for package $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel lang"
amove usr/lib/python*/site-packages/pynicotine/locale
}
sha512sums="
5dab8a1fe718cfd6b0a3e4645e025f42ccc4c86031f65741a3cbfb67e8abfb82cefeb7fc93f5037b9d5f5972ac034cc3ef5a2bac7ae9744533edc894e6e93ef4 nicotine-plus-3.3.4.tar.gz
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment