PKGBUILD 1.19 KB
Newer Older
1
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/kdemultimedia-audiocd-kio
totte's avatar
totte committed
2
# Include global configuration
3
source ../kdeapps.conf
Manuel's avatar
Manuel committed
4 5 6 7

pkgname=kdemultimedia-audiocd-kio
_pkgname=audiocd-kio
pkgver=${_kdever}
totte's avatar
totte committed
8
pkgrel=1
Manuel's avatar
Manuel committed
9 10
pkgdesc="Kioslave for accessing audio CDs"
url='https://projects.kde.org/projects/kde/kdemultimedia/audiocd-kio'
11
arch=('x86_64')
Manuel's avatar
Manuel committed
12 13 14 15 16
license=('GPL' 'LGPL' 'FDL')
depends=("libkcddb>=${_kdever}" "libkcompactdisc>=${_kdever}" 'lame')
makedepends=('cmake' 'automoc4')
groups=("kde" "kdemultimedia" "kde-uninstall")
provides=('audiocd-kio')
Manuel's avatar
Manuel committed
17 18
conflicts=('kdemultimedia-common')
replaces=('kdemultimedia-common')
19
options=('docs' '!header' 'debug' 'log')
20 21
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz  ../checksums.txt | cut -d " " -f1`)
Manuel's avatar
Manuel committed
22 23

build() {
24 25 26 27 28 29 30
    cd ${srcdir}/${_pkgname}-${pkgver}
    cmake . \
        -DCMAKE_BUILD_TYPE=${_build_type} \
        -DCMAKE_INSTALL_PREFIX=${_installprefix} \
        -DCMAKE_SKIP_RPATH=ON \
        -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
    make
Manuel's avatar
Manuel committed
31 32 33
}

package() {
34 35
    cd ${srcdir}/${_pkgname}-${pkgver}
    make DESTDIR=${pkgdir} install
Manuel's avatar
Manuel committed
36
}