Drommer

PKGBUILD (deadbeef-git)

Jul 9th, 2026 (edited)
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.90 KB | Source Code | 0 0
  1. # Maintainer: ToadKing <toadking at toadking dot com>
  2. # Contributor: Soukyuu <chrno-sphered at hotmail dot com>
  3. # Contributor: archtux <antonio dot arias99999 at gmail dot com>
  4.  
  5. pkgname=deadbeef-git
  6. pkgver=r12098.c4140b137
  7. pkgrel=1
  8. pkgdesc="A GTK+ audio player for GNU/Linux (devel branch)"
  9. url="https://deadbeef.sourceforge.io/"
  10. arch=('i686' 'x86_64')
  11. license=('GPL-2.0-or-later' 'LGPL-2.1-or-later' 'Zlib')
  12. depends=('gtk3' 'alsa-lib' 'jansson' 'libdispatch' 'libFLAC.so')
  13. makedepends=('libvorbis' 'libmad' 'flac' 'curl' 'imlib2' 'wavpack' 'libsndfile' 'libcdio'
  14.              'libcddb' 'libx11' 'faad2' 'zlib' 'intltool' 'libpipewire' 'libpulse' 'libzip'
  15.              'libsamplerate' 'yasm' 'ffmpeg' 'clang' 'opusfile' 'mpg123' 'git' 'gtk2')
  16. optdepends=('gtk2: for the GTK2 interface'
  17.             'alsa-oss: for OSS output plugin'
  18.             'cdparanoia: for cd audio plugin'
  19.             'curl: for last.fm, vfs_curl (shoutcast/icecast), artwork plugins'
  20.             'dbus: for notification daemon support (OSD current song notifications)'
  21.             'faad2: for AAC plugin'
  22.             'ffmpeg: for ffmpeg plugin'
  23.             'flac: for flac plugin'
  24.             'imlib2: for artwork plugin'
  25.             'libcddb: for cd audio plugin'
  26.             'libcdio: for cd audio plugin'
  27.             'libice: optional dependency for gtkui session client support'
  28.             'libmad: for mp3 plugin (mpeg1,2 layers1,2,3)'
  29.             'libogg: for ogg vorbis plugin'
  30.             'libpipewire: for pipewire plugin'
  31.             'libsamplerate: for dsp_libsrc plugin (resampler)'
  32.             'libsm: optional dependency for gtkui session client support'
  33.             'libsndfile: for sndfile plugin'
  34.             'libvorbis: for ogg vorbis plugin'
  35.             'libx11: for global hotkeys plugin'
  36.             'libzip: for vfs_zip plugin'
  37.             'mpg123: for MP1/MP2/MP3 playback'
  38.             'opusfile: for opus plugin'
  39.             'pulseaudio: for PulseAudio output plugin'
  40.             'wavpack: for wavpack plugin'
  41.             'yasm: required to build assembly portions of ffap plugin'
  42.             'zlib: for Audio Overload plugin (psf, psf2, etc), GME (for vgz)')
  43. conflicts=('deadbeef')
  44. provides=('deadbeef=1.10.3')
  45. source=('git+https://github.com/DeaDBeeF-Player/deadbeef.git')
  46. sha256sums=('SKIP')
  47.  
  48. pkgver() {
  49.   cd "$srcdir/${pkgname%-*}"
  50.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  51. }
  52.  
  53. prepare() {
  54.   cd "$srcdir/${pkgname%-*}"
  55.   # skip osx/deps and external/apbuild submodules
  56.   git -c submodule."osx/deps".update=none -c submodule."external/apbuild".update=none submodule update --init --recursive
  57. }
  58.  
  59. build () {
  60.   cd "$srcdir/${pkgname%-*}"
  61.   export CC=clang CXX=clang++
  62.   ./autogen.sh
  63.   ./configure --prefix=/usr
  64.   make
  65. }
  66.  
  67. package() {
  68.   cd "$srcdir/${pkgname%-*}"
  69.   make DESTDIR="${pkgdir}" install
  70.   install -D COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
  71. }
  72.  
Advertisement
Add Comment
Please, Sign In to add comment