aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/kmix/APKBUILD
blob: a725c643c99abaef6ecbd501fce79b9d28a1c863 (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: k0r10n <k0r10n.dev@gmail.com>
# Maintainer:
pkgname=kmix
pkgver=4.13.3
pkgrel=0
pkgdesc="Mixer for KDE"
url="http://kde.org/applications/multimedia/kmix/"
arch="all"
license="GPL"
depends=""
depends_dev="kdelibs-dev libcanberra-dev"
makedepends="$depends_dev cmake automoc4"
install=""
subpackages="$pkgname-doc"
source="http://download.kde.org/stable/${pkgver}/src/${pkgname}-${pkgver}.tar.xz"

_builddir="$srcdir"/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	mkdir "$_builddir"/build || return 1
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DCMAKE_BUILD_TYPE=Release \
	      -DKDE4_BUILD_TESTS=OFF \
	      -Wno-dev \
	      "$_builddir" || return 1
	make || return 1
}

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

md5sums="9df8965b7a514a679863a5a7917e40ec  kmix-4.13.3.tar.xz"
sha256sums="38dfca73cc303e9448eea046f20e04e59ae97e1d7f8b71b41f9f049b1dee232f  kmix-4.13.3.tar.xz"
sha512sums="3e19853f8cf6c95bb33aa5b572b212fbbc3d19a4f66376ffafc653d452dd8934d34253e986a28f5608d3a85477652df18c72a524c2565a38ce1fc69b0fff2a7d  kmix-4.13.3.tar.xz"