wok-next view hydrogen/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c0521c689857
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="hydrogen"
4 VERSION="pre-1.0.0-170920" # in CMakeLists: v.1.0.0, but not released yet; 170920 is date of last commit to master
5 COMMIT="1bab373"
6 CATEGORY="multimedia"
7 SHORT_DESC="Advanced Drum Machine"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://hydrogen-music.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/hydrogen-music/hydrogen/archive/${COMMIT:-$VERSION}.tar.gz"
15 BUILD_DEPENDS="cmake qt5-dev mesa-dev zlib-dev libarchive-dev libsndfile-dev \
16 alsa-lib-dev ladspa-dev liblo-dev jack-dev pulseaudio-dev cppunit-dev doxygen"
17 SPLIT="$PACKAGE-dev"
19 compile_rules() {
20 sed -i 's|/man/man1|/share&|' CMakeLists.txt
22 mkdir build
23 cd build
24 [ -e CMakeCache.txt ] && rm CMakeCache.txt # for executing `cook --continue`
25 cmake \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 .. &&
28 make &&
29 make install || return 1
31 cd $install/usr/share/hydrogen/data/i18n/
32 rm *.ts updateTranslations.sh stats.py
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 hydrogen)
38 copy @std
39 DEPENDS="alsa-lib jack libarchive liblo libsndfile pulseaudio \
40 qt5-base qt5-xmlpatterns zlib"
41 TAGS="multimedia"
42 ;;
43 *-dev)
44 copy @dev
45 ;;
46 esac
47 }