Date: Saturday, February 20, 2016 @ 21:20:07
  Author: bisson
Revision: 162872

upstream update

Modified:
  openipmi/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-02-20 20:04:16 UTC (rev 162871)
+++ PKGBUILD    2016-02-20 20:20:07 UTC (rev 162872)
@@ -1,3 +1,4 @@
+# $Id$
 # Maintainer: Gaetan Bisson <[email protected]>
 # Contributor: Miguel Revilla <[email protected]>
 # Contributor: Massimiliano Torromeo <[email protected]>
@@ -11,15 +12,27 @@
 url='http://openipmi.sourceforge.net/'
 arch=('i686' 'x86_64')
 license=('LGPL2.1')
-depends=('popt' 'net-snmp' 'glib' 'glib2' 'tcl')
+makedepends=('swig')
+depends=('popt' 'ncurses' 'net-snmp' 'glib2' 'gdbm')
 
source=("http://downloads.sourceforge.net/project/${pkgname}/${_pkgname}%202.0%20Library/${_pkgname}-${pkgver}.tar.gz";)
-sha256sums=('37b844d02119b94b31e2bb2bd8062ffdf6cd3eb4bc75fa6c47184e8b14fe95b8')
+sha1sums=('54f63ab7fe09f6a4b0b718601fe9c61014aa220b')
 
 options=('!libtool')
 
+prepare() {
+       cd "${srcdir}/${_pkgname}-${pkgver}"
+       sed \
+               -e '/Requires:/s/pthread//' \
+               -e '/Libs:/s/$/ -lpthread/' \
+               -i OpenIPMIpthread.pc.in
+}
+
 build() {
        cd "${srcdir}/${_pkgname}-${pkgver}"
-       ./configure --prefix=/usr
+       ./configure \
+               --prefix=/usr \
+               --sysconfdir=/etc \
+
        make
 }
 
@@ -28,5 +41,4 @@
        make DESTDIR="${pkgdir}" install-exec
        make DESTDIR="${pkgdir}" install
        install -Dm644 doc/IPMI.pdf 
"${pkgdir}/usr/share/doc/${pkgname}/IPMI.pdf"
-       mv "${pkgdir}"/usr/etc "${pkgdir}"
 }

Reply via email to