wok-6.x view clementine/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | f510b8c51ccc |
children | bf28cc07ebf1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="clementine"
4 VERSION="1.2.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="A multiplatform music player."
7 MAINTAINER="shevtsov.anton@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.clementine-player.org/"
11 TARBALL="Clementine-$VERSION.tar.gz"
12 WGET_URL="https://github.com/clementine-player/Clementine/archive/$VERSION.tar.gz"
14 DEPENDS="ffmpeg fftw glew gst-plugins-base libcdio libgpod libmtp libQtDBus \
15 libQtOpenGL libQtWebkit protobuf qca qjson taglib"
16 BUILD_DEPENDS="autoconf automake binutils chromaprint-dev cmake dbus-dev
17 dbus-glib-dev fftw-dev gettext gettext-base gettext-tools glew-dev
18 glib glib-dev gst-plugins-bad-dev gst-plugins-base-dev gst-plugins-good-dev \
19 gst-plugins-ugly-dev gstreamer-dev json-glib json-glib-dev lame-dev \
20 libatomic libboost-dev libcdio-dev libcdio-utils libcrypto-dev libcurl \
21 libgio-dev libglu-mesa-dev libglw-mesa-dev libgpod-dev libmtp-dev \
22 libplist-dev libusb-dev mesa-dev protobuf-dev pulseaudio-dev qca-dev \
23 qjson-dev qmake qt4 Qt4-dev sqlite-dev taglib-dev udisks-dev"
25 current_version()
26 {
27 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
28 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
29 }
31 compile_rules()
32 {
33 patch -Np1 -i $stuff/udisks-namespace.patch
35 mkdir build
36 cd build
37 cmake .. \
38 -DCMAKE_INSTALL_PREFIX=/usr \
39 -Wno-dev &&
40 make &&
41 make install
42 }
44 genpkg_rules()
45 {
46 cp -a $install/* $fs
47 }