[arch-commits] Commit in liborigin2/repos/extra-i686 (PKGBUILD)

Ronald van Haren ronald at archlinux.org
Wed May 20 14:31:54 EDT 2009


    Date: Wednesday, May 20, 2009 @ 14:31:54
  Author: ronald
Revision: 39721

fix pkgbuild

Modified:
  liborigin2/repos/extra-i686/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++----------
 1 file changed, 29 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-05-20 16:55:53 UTC (rev 39720)
+++ PKGBUILD	2009-05-20 18:31:54 UTC (rev 39721)
@@ -2,21 +2,40 @@
 # Maintainer: Ronald van Haren <ronald.archlinux.org>
 # Contributor: damir <damir at archlinux.org>
 
-pkgname=liborigin
-pkgver=20080225
+pkgname=liborigin2
+pkgver=20090326
 pkgrel=1
 pkgdesc="A library for reading OriginLab OPJ project files"
-url="http://sourceforge.net/projects/liborigin/";
+url="http://soft.proindependent.com/liborigin2/";
+source=("http://downloads.sourceforge.net/sourceforge/liborigin/${pkgname}-${pkgver}.tar.gz")
+license=("GPL3")
 arch=("i686" 'x86_64')
 depends=('gcc-libs')
-license=("GPL")
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
-md5sums=('5b7c6f22173a9d97c4f0dbec8671ac83')
+makedepends=('qt' 'boost' 'doxygen')
+replaces=('liborigin')
+provides=('liborigin')
+md5sums=('7cf833d5b7647f6dbd87128459931b4f')
 
 build() {
-	cd $srcdir/${pkgname}-${pkgver}
-	cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1
+	cd ${srcdir}/${pkgname}-${pkgver}
+	
+	# fix build issue
+	sed -i 's|lboost_thread|lboost_thread-mt|' liborigin.pro
+	
+	qmake	
 	make || return 1
-	make DESTDIR=$pkgdir install
+
+	 # create documentation
+        cd doc
+        doxygen
+
+	# install manually...nothing to automate it there :(
+	install -Dm644 ../liborigin2.so.1.0.0 \
+		${pkgdir}/usr/lib/liborigin2.so.1.0.0	
+	install -d ${pkgdir}/usr/share/doc/${pkgname}
+	cp -rf html/* ${pkgdir}/usr/share/doc/${pkgname}
+	cd ${pkgdir}/usr/lib
+	ln -s liborigin2.so.1.0.0 liborigin2.so
+        ln -s liborigin2.so.1.0.0 liborigin2.so.1
+        ln -s liborigin2.so.1.0.0 liborigin2.so.1.0
 }
-



More information about the arch-commits mailing list