aboutsummaryrefslogtreecommitdiffstats
path: root/community/deadbeef/APKBUILD
blob: bafad8aff14493b784a7c52769ff8e8ae33d2c63 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=deadbeef
pkgver=0.7.2
_ver=${pkgver/_rc/-rc}
pkgrel=2
pkgdesc="fairly capable playlist-oriented audio player"
url="http://deadbeef.sourceforge.net/"
arch="all"
license="GPL"
depends=
depends_dev="gtk+-dev libmad-dev alsa-lib-dev ffmpeg-dev libsamplerate-dev
	gettext-dev flac-dev libvorbis-dev jansson-dev curl-dev"
makedepends="$depends_dev intltool gettext"
install=""
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc"
source="https://downloads.sourceforge.net/project/$pkgname/$pkgname-$_ver.tar.bz2
	arm-buildfix.patch
	ppc64le.patch"

builddir="${srcdir}/${pkgname}-$_ver"

prepare() {
	update_config_guess || return 1
	default_prepare
}

build() {
	cd "$builddir"
	CXXFLAGS="$CXXFLAGS -std=gnu++98" \
        ./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="9ea61a3820d9d57f038b80652ce63bd87e6781259c0f58a93b70607b02e71debbf5598f4a06d607d3840a804c3b7fc5039a4c4b0a8bb01e8e5107bba3f0bd980  deadbeef-0.7.2.tar.bz2
57e25e3478b5516f0ebc34fa561c619bdca4cdf7e9f6dc1d81317c972b10bd073a4a761dfc2327047fd56433e79ff57bf501c9cfe77079c450b46f5a0315555b  arm-buildfix.patch
682629f5b677df106083d7187a01a832b92c6474f5a0a2e66e9aac36248aeb8c136fe8b13469e319df08e3eac634330aa62a2dea73f58a524254a6b3d1e92e09  ppc64le.patch"