summaryrefslogtreecommitdiff
path: root/pcr/lprof/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-12 19:41:23 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-12 19:41:23 -0200
commit0a56f4296213ccb5b27a67fc5bdce7fe356697f5 (patch)
tree591938c553eadc5a34b016b3165db2dd8bb3e9a9 /pcr/lprof/PKGBUILD
parent167c03d7b7736737327732a28a32c3cbbb963c1a (diff)
downloadabslibre-0a56f4296213ccb5b27a67fc5bdce7fe356697f5.tar.gz
abslibre-0a56f4296213ccb5b27a67fc5bdce7fe356697f5.tar.bz2
abslibre-0a56f4296213ccb5b27a67fc5bdce7fe356697f5.zip
lprof: add new package to pcr repo
Diffstat (limited to 'pcr/lprof/PKGBUILD')
-rw-r--r--pcr/lprof/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/lprof/PKGBUILD b/pcr/lprof/PKGBUILD
new file mode 100644
index 000000000..b25927937
--- /dev/null
+++ b/pcr/lprof/PKGBUILD
@@ -0,0 +1,44 @@
+# Contributor: Branko Vukelic <bg.branko@gmail.com>
+# Maintainer (Parabola): Márcio Silva <coadde@parabola.nu>
+# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+
+pkgname=lprof
+pkgver=1.11.4.1
+pkgrel=3
+arch=(i686 x86_64 mips64el)
+pkgdesc="Imaging device calibration tool"
+url="http://lprof.sourceforge.net/"
+license="GPL"
+depends=('qt3' 'lcms>=1.12' 'vigra>=1.3')
+makedepends=('python>=1.53' 'scons')
+source=(http://downloads.sourceforge.net/lprof/${pkgname}-${pkgver}.tar.gz
+ lcms-117.patch)
+md5sums=('2177c77c24aa10db9b7681d264735ea9'
+ '5ce946c711462428a10116065647c823')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p0<../lcms-117.patch
+ sed -i "s/'tiff'/'tiff','png'/" SConstruct || return 1
+ sed -i "s|'moc'|'moc-qt3'|" SConstruct || return 1
+ sed -i "s|'uic'|'uic-qt3'|" SConstruct || return 1
+ sed -i "s|qtdir, 'lib'|qtdir, 'lib', 'qt3'|
+ s|qtdir, 'include'|qtdir, 'include', 'qt3'|
+ " SConstruct || return 1
+ sed -i "s|qmake|qmake-qt3|
+ s|lrelease|lrelease-qt3|
+ s|lupdate|lupdate-qt3|
+ " {createtrans,comptrans}.sh
+ rm -rf scons*
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ scons PREFIX=/usr qt_directory=/usr || return 1
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -d ${pkgdir}/usr
+ scons PREFIX=${pkgdir}/usr install
+}