Skip to content

Instantly share code, notes, and snippets.

@jonathonf
Created May 8, 2021 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathonf/50cb3577e26ef117a1da95548170efab to your computer and use it in GitHub Desktop.
Save jonathonf/50cb3577e26ef117a1da95548170efab to your computer and use it in GitHub Desktop.
Bring up to date with deadbeef-git and link in external dependencies
diff --git a/PKGBUILD b/PKGBUILD
index 75d1bc9..f336459 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,52 +2,73 @@
# Contributor: Alexey Yakovenko <waker@users.sourceforge.net>
pkgname=deadbeef
-pkgver=1.8.4
+pkgver=1.8.7
pkgrel=1
-pkgdesc='A GTK+ audio player for GNU/Linux.'
-arch=('x86_64')
-url='http://deadbeef.sourceforge.net'
-license=('GPL2')
-depends=('alsa-lib' 'hicolor-icon-theme' 'desktop-file-utils' 'jansson')
-makedepends=('libvorbis' 'libmad' 'flac' 'curl' 'imlib2' 'wavpack' 'libsndfile' 'libcdio' 'libcddb'
- 'libx11' 'faad2' 'zlib' 'intltool' 'pkgconfig' 'libpulse' 'libzip' 'libsamplerate'
- 'yasm' 'ffmpeg' 'gtk2' 'gtk3')
+pkgdesc="A GTK+ audio player for GNU/Linux"
+url="https://deadbeef.sourceforge.io/"
+arch=('i686' 'x86_64')
+license=('GPL2'
+ 'LGPL2.1'
+ 'ZLIB')
+depends=('alsa-lib' 'hicolor-icon-theme' 'jansson' 'libblocksruntime' 'libdispatch')
+makedepends=('curl' 'faad2' 'flac' 'git' 'intltool' 'imlib2' 'libcddb' 'libcdio' 'libmad' 'libpulse'
+ 'libsamplerate' 'libvorbis' 'libx11' 'libzip' 'wavpack' 'yasm'
+ 'ffmpeg' 'gtk2' 'gtk3' 'clang')
optdepends=('gtk2: for the GTK2 interface'
'gtk3: for the GTK3 interface'
- 'libsamplerate: for Resampler plugin'
- 'libvorbis: for Ogg Vorbis playback'
- 'libmad: for MP1/MP2/MP3 playback'
- 'mpg123: for MP1/MP2/MP3 playback'
- 'flac: for FLAC playback'
- 'curl: for Last.fm scrobbler, SHOUTcast, Icecast, Podcast support'
+ 'libsamplerate: for dsp_libsrc plugin (resampler)'
+ 'libsm: optional dependency for gtkui session client support'
+ 'libice: optional dependency for gtkui session client support'
+ 'alsa-lib: ALSA support'
+ 'alsa-oss: for OSS output plugin'
+ 'libvorbis: for ogg vorbis plugin'
+ 'libogg: for ogg vorbis plugin'
+ 'libmad: for mp3 plugin (mpeg1,2 layers1,2,3)'
+ 'flac: for flac plugin'
+ 'curl: for last.fm, vfs_curl (shoutcast/icecast), artwork plugins'
'imlib2: for artwork plugin'
- 'wavpack: for WavPack playback'
- 'libsndfile: for Wave playback'
- 'libcdio: audio cd plugin'
- 'libcddb: audio cd plugin'
- 'faad2: for AAC/MP4 support'
- 'dbus: for OSD notifications support'
+ 'wavpack: for wavpack plugin'
+ 'libsndfile: for sndfile plugin'
+ 'libcdio: for cd audio plugin'
+ 'libcddb: for cd audio plugin'
+ 'cdparanoia: for cd audio plugin'
+ 'faad2: for AAC plugin'
+ 'dbus: for notification daemon support (OSD current song notifications)'
'pulseaudio: for PulseAudio output plugin'
'libx11: for global hotkeys plugin'
- 'zlib: for Audio Overload plugin'
+ 'zlib: for Audio Overload plugin (psf, psf2, etc), GME (for vgz)'
+ 'libsidplay: for SID player plugin'
+ 'yasm: required to build assembly portions of ffap plugin'
'libzip: for vfs_zip plugin'
- 'ffmpeg: for ffmpeg plugin')
-source=("https://github.com/DeaDBeeF-Player/${pkgname}/archive/${pkgver}.tar.gz")
-sha512sums=('18c54ae2c7931419ea06f3eb581cc8e704fa6eb87d330fc09f7295f4a8ef6e88b6f8c314223c34c321cd2a54f14cb6911add41602250c39c1b1c1edbf64d63b7')
+ 'ffmpeg: for ffmpeg plugin'
+ 'opusfile: for opus plugin'
+ 'mpg123: for MP1/MP2/MP3 playback')
+_apbuildcommit=c64f490e54447e3902fae54784d01ab59fa7dc95
+_mp4pcommit=18b9197077012ea077be67baa4505fccb20552b6
+source=("https://github.com/DeaDBeeF-Player/${pkgname}/archive/${pkgver}.tar.gz"
+ "apbuild-$pkgver.tar.gz::https://github.com/DeaDBeeF-Player/apbuild/archive/$_apbuildcommit.tar.gz"
+ "mp4p-$pkgver.tar.gz::https://github.com/DeaDBeeF-Player/mp4p/archive/$_mp4pcommit.tar.gz")
+sha512sums=('b8026b934a211ed24cdbc7e738fbfaa95d20706c0fcaef65530d7354e19d71c1e05af59305354478b4c4f1dbe4f7dbf436af7093d25727a2508b24c692a09258'
+ '33b293a5b494ecfb50a48a37aca95de054125e2e864d197bd374bd1477bfcf1a8f5bc924303a7a846c1971c6503dbf0e82e74ff6db605a7720736a5696acdeda'
+ '7aad33096f2cdda72136fa58a9164d8665c96b312c5bab954b4705fb122c21b02db31f651d322dda8881c87abefe0a3f0bd49d434fc7aa148de47974a00eb805')
prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd $pkgname-$pkgver
+
+ rmdir external/{apbuild,mp4p}
+ ln -s "$srcdir"/apbuild-$_apbuildcommit external/apbuild
+ ln -s "$srcdir"/mp4p-$_mp4pcommit external/mp4p
./autogen.sh
- ./configure --prefix=/usr
+ CC=clang CXX=clang++ ./configure --prefix=/usr
}
build () {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd $pkgname-$pkgver
make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment