mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-10 10:04:37 +08:00
55 lines
1.7 KiB
Bash
55 lines
1.7 KiB
Bash
#
|
|
# Apps SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
# contributor kote martini438[at]gmail.com
|
|
|
|
##############################################################
|
|
#### The section below can be adjusted to suit your needs ####
|
|
##############################################################
|
|
|
|
# What type of build do you want?
|
|
# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
|
|
# You can change it to for example RelWithDebInfo to help with debugging.
|
|
|
|
_buildtype="Release"
|
|
|
|
##############################################################
|
|
|
|
pkgname=libechonest
|
|
pkgver=1.2.0
|
|
pkgrel=1
|
|
pkgdesc="C++ library for interfacing with Echo Nest"
|
|
arch=('i686' 'x86_64')
|
|
url="https://projects.kde.org/projects/playground/libs/libechonest"
|
|
license=('GPL')
|
|
depends=('qjson')
|
|
makedepends=('cmake')
|
|
provides=('libechonest')
|
|
conflicts=('libechonest-git')
|
|
options=(!strip)
|
|
source=(http://pwsp.cleinias.com/${pkgname}-${pkgver}.tar.bz2)
|
|
md5sums=('fe8554bf2776a68611c1a5b145d23a1e')
|
|
|
|
# Clean options array to strip pkg if release buildtype is chosen
|
|
if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
|
|
options=()
|
|
fi
|
|
|
|
build() {
|
|
msg "Starting build..."
|
|
|
|
rm -rf ${srcdir}/${pkgname}-${pkgver}-build
|
|
cp -r ${srcdir}/${pkgname}-${pkgver} ${srcdir}/${pkgname}-${pkgver}-build
|
|
cd ${srcdir}/${pkgname}-${pkgver}-build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${_buildtype}
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}-build
|
|
make DESTDIR=${pkgdir} install
|
|
}
|