aboutsummaryrefslogtreecommitdiffstats
path: root/community/hydrogen/APKBUILD
blob: a3beaf9040c5dee94e1c8b06b9da436e4ba2daf5 (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hydrogen
pkgver=1.0.0_beta1
_ver=${pkgver/_beta/-beta}
pkgrel=0
pkgdesc="Advanced drum machine for GNU/Linux"
url="http://www.hydrogen-music.org/"
arch="all"
license="GPL-2.0-or-later"
depends=""
makedepends="
	alsa-lib-dev
	cmake
	flac-dev
	jack-dev
	libarchive-dev
	libsndfile-dev
	portaudio-dev
	qt5-qtbase-dev
	qt5-qtxmlpatterns-dev
	"
subpackages="$pkgname-dev"
source="hydrogen-$pkgver.tar.gz::https://github.com/hydrogen-music/hydrogen/archive/${_ver}.tar.gz"

builddir="$srcdir"/hydrogen-$_ver

build() {
	cd "$_builddir"
	export QTDIR=/usr/lib
	cmake . -DCMAKE_INSTALL_PREFIX=/usr \
		-DWANT_CPPUNIT=OFF \
		-DWANT_LRDF=ON
	make
}

package() {
	cd "$builddir"
	export QTDIR=/usr/lib
	make install DESTDIR="$pkgdir"
}

sha512sums="73963a9f400a4d9f6faca41f5f9af2c4b00ebefb16f394a78fe81f7aacb23acee49633803a484e91705da01cb59b4699133f618fac34f6caa7734bcc67bf4518  hydrogen-1.0.0_beta1.tar.gz"