aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/kfilemetadata/APKBUILD
blob: 56e3b564a7c2a7c8d5992efa586124ff8216e403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Maintainer:
pkgname=kfilemetadata
pkgver=4.13.3
pkgrel=1
pkgdesc="A library for extracting file metadata"
url="https://projects.kde.org/projects/kde/kdelibs/kfilemetadata"
arch="all"
license="LGPL"
depends=
depends_dev="kdegraphics-mobipocket-dev ebook-tools-dev
	     poppler-qt4-dev taglib-dev extra-cmake-modules
	     ffmpeg-dev"
makedepends="$depends_dev cmake automoc4"
install=""
subpackages="$pkgname-dev"
source="ftp://ftp.kde.org/pub/kde/stable/${pkgver}/src/${pkgname}-${pkgver}.tar.xz"

_builddir="$srcdir"/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	mkdir -p "$_builddir"/build
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DCMAKE_BUILD_TYPE=Release \
	      -Wno-dev "$_builddir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="7456cdbe4a3986ed75706049d2c36c2b  kfilemetadata-4.13.3.tar.xz"
sha256sums="0777d591dd4328f83bdede9764fe7d70923baed0ccad779d9cc3aaddaefef4cf  kfilemetadata-4.13.3.tar.xz"
sha512sums="e8fdb7699c37af227db14e55696fb3b4f012e9f1f3cceec988b52f9f4b9d6406ffc340f60a00ce144764a9fce57d1052979b94bf19ccb3da56495c76a1f10381  kfilemetadata-4.13.3.tar.xz"