Skip to content

Instantly share code, notes, and snippets.

@yannleretaille
Last active July 4, 2021 18:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yannleretaille/1a45e6d55f7ed3833f9426c2fea29f2d to your computer and use it in GitHub Desktop.
Save yannleretaille/1a45e6d55f7ed3833f9426c2fea29f2d to your computer and use it in GitHub Desktop.
pulseaudio-dlna 0.6.1 (Cygn fork)
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: ZaZam <zazaamm ät gmail döt com>
# Contributor: Yegorius <yegorius@domic.us>
pkgname=pulseaudio-dlna
pkgver=0.6.1
pkgrel=1
pkgdesc='Small DLNA server which brings DLNA/UPnP support to PulseAudio'
arch=('x86_64')
url=https://github.com/Cygn/pulseaudio-dlna/
license=('GPL3')
depends=('python-chardet' 'python-dbus' 'python-docopt' 'python-gobject'
'python-lxml' 'python-netifaces' 'python-notify2' 'python-psutil'
'python-pychromecast' 'python-pyroute2' 'python-requests'
'python-setproctitle' 'python-protobuf' 'python-setuptools'
'python-zeroconf' 'python-urllib3')
makedepends=('git' 'help2man')
optdepends=('faac: AAC transcoding support'
'ffmpeg: multiple formats support'
'flac: FLAC transcoding support'
'lame: MP3 transcoding support'
'opus-tools: OPUS transcoding support'
'sox: WAV transcoding support'
'vorbis-tools: OGG transcoding support')
source=('https://github.com/Cygn/pulseaudio-dlna/archive/0.6.1.tar.gz')
sha256sums=('497743700377389ae03ffae2d8fbf8c49ed8ec219d53fd8ca7f0aea0d464b15d')
prepare() {
cd "$pkgname-$pkgver"
sed -i '/dbus-python/d' setup.py
}
build() {
cd "$pkgname-$pkgver"
python setup.py build
}
package() {
cd "$pkgname-$pkgver"
make manpage
python setup.py build --build-lib=build/python \
install --root="$pkgdir" --optimize=1
}
# vim:set ts=2 sw=2 et:
@amo13
Copy link

amo13 commented Jun 24, 2021

I get that. Still, if one creates a PKGBUILD, I'd consider it cleaner and more consistent with python packaging on archlinux to avoid virtual envs.
Anyway, thank you for your comments and hints on how to successfully build it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment