desktop/kid3/PKGBUILD

59 lines
1.6 KiB
Bash
Raw Normal View History

2015-05-13 22:27:18 +08:00
pkgbase=kid3
pkgname=('kid3' 'kid3-kf5')
2015-05-13 06:56:02 +08:00
pkgver=3.2.1
2015-05-14 14:44:06 +08:00
pkgrel=3
2010-11-03 07:04:33 +08:00
pkgdesc="An MP3, Ogg/Vorbis and FLAC tag editor for KDE"
2012-12-04 06:34:47 +08:00
arch=('x86_64')
2010-11-03 07:04:33 +08:00
url="http://kid3.sourceforge.net/"
license=('GPL')
2015-05-13 22:27:18 +08:00
depends=('id3lib' 'libmp4v2' 'chromaprint' 'ffmpeg')
makedepends=('automoc4' 'cmake' 'taglib' 'docbook-xsl' 'docbook-xml' 'phonon' 'qt5-tools'
'extra-cmake-modules' 'kdoctools' 'plasma-framework' 'qt5-multimedia' 'kde-runtime')
categories=('multimedia')
screenshot=('http://pkgs.org/images/linux-software/kid3/kid3-screenshot.png')
2010-11-03 07:04:33 +08:00
install=${pkgname}.install
source=("http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
2015-05-13 06:56:02 +08:00
sha256sums=('da686929b5329f910b96b4fd1a10d490ffac4a604be22a795405460871afe494')
2010-11-03 07:04:33 +08:00
2015-05-13 22:27:18 +08:00
prepare() {
cd ${srcdir}
[[ -e build ]] || rm -rf build && mkdir -p build
[[ -e build-kf5 ]] || rm -rf build-kf5 && mkdir -p build-kf5
}
2010-11-03 07:04:33 +08:00
build() {
2015-05-13 22:27:18 +08:00
msg 'build for KDE4'
cd ${srcdir}/build
cmake ../${pkgbase}-${pkgver} \
-DWITH_QT4=ON -DWITH_FFMPEG=ON \
-DWITH_APPS="CLI;KDE" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
msg 'build for Kf5'
cd ${srcdir}/build-kf5
cmake ../${pkgbase}-${pkgver} \
-DWITH_QT5=ON -DWITH_QML=ON -DWITH_FFMPEG=ON \
2015-04-02 08:12:09 +08:00
-DWITH_APPS="CLI;KDE" \
2010-11-03 07:04:33 +08:00
-DCMAKE_INSTALL_PREFIX=/usr \
2013-03-11 23:24:30 +08:00
-DCMAKE_BUILD_TYPE=Release
2015-05-13 06:56:02 +08:00
make
2015-05-13 22:27:18 +08:00
}
package_kid3() {
depends+=('kde-runtime')
cd ${srcdir}/build
make DESTDIR="${pkgdir}" install
2010-11-03 07:04:33 +08:00
}
2015-05-13 22:27:18 +08:00
package_kid3-kf5() {
2015-05-14 14:44:06 +08:00
depends+=('qt5-multimedia' 'plasma-framework')
2015-05-13 22:27:18 +08:00
pkgdesc+=('(Kf5 port)')
conflicts=${pkgbase}
replaces=${pkgbase}
cd ${srcdir}/build-kf5
2013-10-30 06:44:17 +08:00
make DESTDIR="${pkgdir}" install
2010-11-03 07:04:33 +08:00
}