desktop/k3b/PKGBUILD
2017-03-12 14:05:28 +01:00

53 lines
1.6 KiB
Bash

#
# Apps Packages for Chakra, part of chakraos.org
#
pkgname=k3b
pkgver=2.0.3.a
pkgrel=5
pkgdesc="Feature-rich and easy to handle CD burning application"
arch=("x86_64")
url="http://sourceforge.net/projects/k3b/"
license=('GPL')
depends=('kdebase-runtime' 'libkcddb4' 'libsamplerate' 'libmad'
'ffmpeg' 'taglib' 'libmpcdec' 'libdvdread' 'cdrkit' 'libxft')
makedepends=('cmake' 'automoc4' 'docbook-xml' 'docbook-xsl')
optdepends=('dvd+rw-tools: for dvd burning support'
'vcdimager: for vcd burning support'
'transcode: for advanced mpeg conversion support'
'emovix: for bootable multimedia cd/dvd support'
'cdrdao: for disk-at-once (DAO) mode support'
'cdparanoia: for cd ripping support')
categories=('multimedia')
install=$pkgname.install
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-2.0.3a.tar.xz"
k3b-ffmpeg3.patch
k3b-no-webkit.patch)
sha1sums=('f1001db3b5b32ef6bdb827742f1ca357c82b216f'
'8ee47b04e92499d484c49e33dd33dabdf53025c9'
'21a4446673ad48b326aaa010fdab539faaefcc51')
prepare() {
cd ${pkgname}-2.0.3
# Workaround build failure with cmake 3.4
sed -e "s|^cmake_minimum_required|#cmake_minimum_required|" -i CMakeLists.txt
# Fix build with ffmpeg 3.0 (Gentoo)
patch -p1 -i ../k3b-ffmpeg3.patch
# Remove qtwebkit usage (Fedora)
patch -p1 -i ../k3b-no-webkit.patch
}
build() {
mkdir -p build
cd build
cmake ../${pkgname}-2.0.3 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}