summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e06d5dbae22c138a8319777e60d2066770c8cef (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
# Maintainer: Lukas Spies <lukas_dot_spies_at_web_dot_de>

_pkgname=libqpsd
pkgname=libqpsd-git
pkgver=20190113
pkgrel=1
pkgdesc="PSD & PSB Plugin for Qt/C++ (Qt4/Qt5) "
arch=("x86_64")
url="https://github.com/Code-ReaQtor/libqpsd"
license=("LGPL")
depends=("qt5-base")
# depends=("qt4")	# use this depends instead of the above for Qt4 build
makedepends=("git")
source=("git://github.com/Code-ReaQtor/libqpsd")
sha256sums=("SKIP")

prepare() {
	cd "$srcdir/$_pkgname"
	
	sed -i "s|\$\$\[QT_INSTALL_PLUGINS\]|$pkgdir/usr/lib/qt/plugins|" QPsdPlugin.pro
	
	mkdir -p build
	cd build
	qmake ..
	make
}

package() {
	cd "$srcdir/$_pkgname"
	cd build
	make INSTALL_ROOT="$pkgdir" install
}