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

2011-08-16 Thread Eric Bélanger
Date: Tuesday, August 16, 2011 @ 17:35:10
  Author: eric
Revision: 135637

archrelease: copy trunk to extra-i686

Added:
  oprofile/repos/extra-i686/PKGBUILD
(from rev 135636, oprofile/trunk/PKGBUILD)
Deleted:
  oprofile/repos/extra-i686/PKGBUILD

--+
 PKGBUILD |   72 ++---
 1 file changed, 36 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2011-08-16 21:34:52 UTC (rev 135636)
+++ PKGBUILD2011-08-16 21:35:10 UTC (rev 135637)
@@ -1,36 +0,0 @@
-# $Id$
-# Maintainer : Aaron Griffin 
-
-pkgname=oprofile
-pkgver=0.9.7
-pkgrel=1
-pkgdesc="A system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead"
-arch=('i686' 'x86_64')
-url="http://oprofile.sourceforge.net";
-license=('GPL')
-depends=('popt' 'gcc-libs' 'zlib' 'sh')
-makedepends=('qt')
-optdepends=('qt: for oprof_start gui')
-options=('!libtool')
-install=oprofile.install
-source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('034bad41b707b7d67591f4848d7669be')
-sha1sums=('e462de2e03954a3c61f6d626d97d0652c1e45e02')
-
-build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
-  make
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make DESTDIR="$pkgdir" install
-
-# installing development libraries - FS#20089
-  install -m644 libutil/op_types.h libop/op_sample_file.h libutil/op_list.h 
libop/op_events.h libop/op_cpu_type.h libop/op_config.h libdb/odb.h 
"$pkgdir/usr/include"
-  install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
-  install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
-  install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a"
-  install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a"
-}

Copied: oprofile/repos/extra-i686/PKGBUILD (from rev 135636, 
oprofile/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2011-08-16 21:35:10 UTC (rev 135637)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer : Aaron Griffin 
+
+pkgname=oprofile
+pkgver=0.9.7
+pkgrel=1
+pkgdesc="A system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead"
+arch=('i686' 'x86_64')
+url="http://oprofile.sourceforge.net";
+license=('GPL')
+depends=('popt' 'gcc-libs' 'zlib' 'sh')
+makedepends=('qt')
+optdepends=('qt: for oprof_start gui')
+options=('!libtool')
+install=oprofile.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('8b5d1d9b65f84420bcc3234777ad3be3')
+sha1sums=('f5befd8aafc77d449e955f0585216f5d7b967de2')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+
+# installing development libraries - FS#20089
+  install -m644 libutil/op_types.h libop/op_sample_file.h libutil/op_list.h 
libop/op_events.h libop/op_cpu_type.h libop/op_config.h libdb/odb.h 
"$pkgdir/usr/include"
+  install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
+  install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
+  install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a"
+  install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a"
+}



[arch-commits] Commit in oprofile/repos/extra-i686 (3 files)

2011-08-16 Thread Eric Bélanger
Date: Tuesday, August 16, 2011 @ 17:31:02
  Author: eric
Revision: 135634

archrelease: copy trunk to extra-i686

Added:
  oprofile/repos/extra-i686/PKGBUILD
(from rev 135633, oprofile/trunk/PKGBUILD)
  oprofile/repos/extra-i686/oprofile.install
(from rev 135633, oprofile/trunk/oprofile.install)
Deleted:
  oprofile/repos/extra-i686/PKGBUILD

--+
 PKGBUILD |   72 ++---
 oprofile.install |   18 +
 2 files changed, 54 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2011-08-16 21:30:32 UTC (rev 135633)
+++ PKGBUILD2011-08-16 21:31:02 UTC (rev 135634)
@@ -1,36 +0,0 @@
-# $Id$
-# Maintainer : Aaron Griffin 
-
-pkgname=oprofile
-pkgver=0.9.7
-pkgrel=1
-pkgdesc="A system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead"
-arch=('i686' 'x86_64')
-url="http://oprofile.sourceforge.net";
-license=('GPL')
-depends=('popt' 'gcc-libs' 'zlib' 'sh')
-makedepends=('qt')
-optdepends=('qt: for oprof_start gui')
-options=('!libtool')
-install=oprofile.install
-source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('8b5d1d9b65f84420bcc3234777ad3be3')
-sha1sums=('f5befd8aafc77d449e955f0585216f5d7b967de2')
-
-build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
-  make
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make DESTDIR="$pkgdir" install
-
-# installing development libraries - FS#20089
-  install -m644 libutil/op_types.h libop/op_sample_file.h libutil/op_list.h 
libop/op_events.h libop/op_cpu_type.h libop/op_config.h libdb/odb.h 
"$pkgdir/usr/include"
-  install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
-  install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
-  install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a"
-  install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a"
-}

Copied: oprofile/repos/extra-i686/PKGBUILD (from rev 135633, 
oprofile/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2011-08-16 21:31:02 UTC (rev 135634)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer : Aaron Griffin 
+
+pkgname=oprofile
+pkgver=0.9.7
+pkgrel=1
+pkgdesc="A system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead"
+arch=('i686' 'x86_64')
+url="http://oprofile.sourceforge.net";
+license=('GPL')
+depends=('popt' 'gcc-libs' 'zlib' 'sh')
+makedepends=('qt')
+optdepends=('qt: for oprof_start gui')
+options=('!libtool')
+install=oprofile.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('034bad41b707b7d67591f4848d7669be')
+sha1sums=('e462de2e03954a3c61f6d626d97d0652c1e45e02')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+
+# installing development libraries - FS#20089
+  install -m644 libutil/op_types.h libop/op_sample_file.h libutil/op_list.h 
libop/op_events.h libop/op_cpu_type.h libop/op_config.h libdb/odb.h 
"$pkgdir/usr/include"
+  install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
+  install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
+  install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a"
+  install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a"
+}

Copied: oprofile/repos/extra-i686/oprofile.install (from rev 135633, 
oprofile/trunk/oprofile.install)
===
--- oprofile.install(rev 0)
+++ oprofile.install2011-08-16 21:31:02 UTC (rev 135634)
@@ -0,0 +1,18 @@
+post_install(){
+  groupadd -g 492 oprofile &>/dev/null
+  useradd -u 492 -g oprofile -s /bin/false oprofile &>/dev/null
+}
+
+post_upgrade(){
+  getent group oprofile >/dev/null 2>&1 || groupadd -g 492 oprofile &>/dev/null
+  getent passwd oprofile >/dev/null 2>&1 || useradd -u 492 -g oprofile -s 
/bin/false oprofile &>/dev/null
+}
+
+post_remove(){
+  if getent passwd oprofile >/dev/null 2>&1; then
+userdel oprofile
+  fi
+  if getent group oprofile >/dev/null 2>&1; then
+groupdel oprofile
+  fi
+}



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

2011-08-15 Thread Eric Bélanger
Date: Tuesday, August 16, 2011 @ 00:28:57
  Author: eric
Revision: 135581

archrelease: copy trunk to extra-i686

Added:
  oprofile/repos/extra-i686/PKGBUILD
(from rev 135580, oprofile/trunk/PKGBUILD)
Deleted:
  oprofile/repos/extra-i686/PKGBUILD

--+
 PKGBUILD |   74 +
 1 file changed, 36 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2011-08-16 04:28:37 UTC (rev 135580)
+++ PKGBUILD2011-08-16 04:28:57 UTC (rev 135581)
@@ -1,38 +0,0 @@
-# $Id$
-# Maintainer : Aaron Griffin 
-
-pkgname=oprofile
-pkgver=0.9.6
-pkgrel=3
-pkgdesc="A system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead"
-arch=('i686' 'x86_64')
-url="http://oprofile.sourceforge.net";
-license=('GPL')
-depends=('popt')
-makedepends=('qt3')
-optdepends=('qt3: for oprof_start gui')
-options=('!libtool')
-source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('4e407093ac06200185d5a5e6437d7242')
-sha1sums=('cc62cc58c574e235bc146c8ddc9d9a9af0972fd1')
-
-build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  ./configure --prefix=/usr \
---mandir=/usr/share/man \
---with-kernel-support \
---with-x
-  make
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make DESTDIR="$pkgdir" install
-
-# installing development libraries
-  install -m644 libutil/op_types.h libop/op_sample_file.h libutil/op_list.h 
libop/op_events.h libop/op_cpu_type.h libop/op_config.h libdb/odb.h 
"$pkgdir/usr/include"
-  install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
-  install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
-  install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a"
-  install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a"
-}

Copied: oprofile/repos/extra-i686/PKGBUILD (from rev 135580, 
oprofile/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2011-08-16 04:28:57 UTC (rev 135581)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer : Aaron Griffin 
+
+pkgname=oprofile
+pkgver=0.9.7
+pkgrel=1
+pkgdesc="A system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead"
+arch=('i686' 'x86_64')
+url="http://oprofile.sourceforge.net";
+license=('GPL')
+depends=('popt' 'gcc-libs' 'zlib' 'sh')
+makedepends=('qt')
+optdepends=('qt: for oprof_start gui')
+options=('!libtool')
+install=oprofile.install
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('8b5d1d9b65f84420bcc3234777ad3be3')
+sha1sums=('f5befd8aafc77d449e955f0585216f5d7b967de2')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+
+# installing development libraries - FS#20089
+  install -m644 libutil/op_types.h libop/op_sample_file.h libutil/op_list.h 
libop/op_events.h libop/op_cpu_type.h libop/op_config.h libdb/odb.h 
"$pkgdir/usr/include"
+  install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
+  install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
+  install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a"
+  install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a"
+}



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

2011-01-21 Thread Eric Bélanger
Date: Friday, January 21, 2011 @ 14:58:57
  Author: eric
Revision: 107151

archrelease: copy trunk to extra-i686

Added:
  oprofile/repos/extra-i686/



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

2011-01-21 Thread Eric Bélanger
Date: Friday, January 21, 2011 @ 14:58:48
  Author: eric
Revision: 107150

archrelease: remove extra-i686

Deleted:
  oprofile/repos/extra-i686/



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

2010-02-02 Thread Andrea Scarpino
Date: Tuesday, February 2, 2010 @ 19:48:47
  Author: andrea
Revision: 67089

Merged revisions 67088 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/oprofile/trunk


  r67088 | andrea | 2010-02-03 01:48:09 +0100 (Wed, 03 Feb 2010) | 2 lines
  
  upgpkg: oprofile 0.9.6-2
  bump pkgrel


Modified:
  oprofile/repos/extra-i686/(properties)
  oprofile/repos/extra-i686/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Property changes on: oprofile/repos/extra-i686
___
Modified: svnmerge-integrated
   - /oprofile/trunk:1-67085
   + /oprofile/trunk:1-67088

Modified: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2010-02-03 00:48:09 UTC (rev 67088)
+++ extra-i686/PKGBUILD 2010-02-03 00:48:47 UTC (rev 67089)
@@ -3,7 +3,7 @@
 
 pkgname=oprofile
 pkgver=0.9.6
-pkgrel=1
+pkgrel=2
 pkgdesc="a system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead"
 arch=('i686' 'x86_64')
 url="http://oprofile.sourceforge.net";



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

2010-02-02 Thread Andrea Scarpino
Date: Tuesday, February 2, 2010 @ 19:39:12
  Author: andrea
Revision: 67086

Merged revisions 67085 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/oprofile/trunk


  r67085 | andrea | 2010-02-03 01:38:33 +0100 (Wed, 03 Feb 2010) | 2 lines
  
  upgpkg: oprofile 0.9.6-1
  moved qt3 as optdepends; added libtools option; remove daemon (FS#18072)


Modified:
  oprofile/repos/extra-i686/(properties)
  oprofile/repos/extra-i686/PKGBUILD

--+
 PKGBUILD |   31 ---
 1 file changed, 16 insertions(+), 15 deletions(-)


Property changes on: oprofile/repos/extra-i686
___
Modified: svnmerge-integrated
   - /oprofile/trunk:1-66799
   + /oprofile/trunk:1-67085

Modified: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2010-02-03 00:38:33 UTC (rev 67085)
+++ extra-i686/PKGBUILD 2010-02-03 00:39:12 UTC (rev 67086)
@@ -4,26 +4,27 @@
 pkgname=oprofile
 pkgver=0.9.6
 pkgrel=1
-pkgdesc="a system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead."
+pkgdesc="a system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead"
 arch=('i686' 'x86_64')
 url="http://oprofile.sourceforge.net";
 license=('GPL')
-depends=('qt3' 'popt' 'gcc')
-source=(http://downloads.sourceforge.net/sourceforge/oprofile/$pkgname-$pkgver.tar.gz
-oprofile
-oprofile.conf)
-md5sums=('4e407093ac06200185d5a5e6437d7242'
- 'c17ea27694be82f73a735354352f3558'
- '8da1393a0401e7cc9071e184902e50a3')
+makedepends=('qt3')
+depends=('popt')
+optdepends=('qt3: for oprof_start gui')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('4e407093ac06200185d5a5e6437d7242')
+options=('!libtool')
 
-build()
-{
+build() {
   cd $srcdir/$pkgname-$pkgver
-  . /etc/profile.d/qt3.sh
-  ./configure --prefix=/usr --mandir=/usr/share/man --with-kernel-support 
--with-x
+  ./configure --prefix=/usr \
+--mandir=/usr/share/man \
+--with-kernel-support \
+--with-x
   make || return 1
-  make DESTDIR=$pkgdir install
+}
 
-  install -Dm755 $srcdir/oprofile $pkgdir/etc/rc.d/oprofile
-  install -Dm755 $srcdir/oprofile.conf $pkgdir/etc/conf.d/oprofile
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install || return 1
 }



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

2010-02-01 Thread Giovanni Scafora
Date: Monday, February 1, 2010 @ 10:41:47
  Author: giovanni
Revision: 66800

Merged revisions 66799 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/oprofile/trunk


  r66799 | giovanni | 2010-02-01 16:41:01 +0100 (lun, 01 feb 2010) | 2 lines
  
  upgpkg: oprofile 0.9.6-1
  upstream release


Modified:
  oprofile/repos/extra-i686/(properties)
  oprofile/repos/extra-i686/PKGBUILD

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


Property changes on: oprofile/repos/extra-i686
___
Modified: svnmerge-integrated
   - /oprofile/trunk:1-57596
   + /oprofile/trunk:1-66799

Modified: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2010-02-01 15:41:01 UTC (rev 66799)
+++ extra-i686/PKGBUILD 2010-02-01 15:41:47 UTC (rev 66800)
@@ -2,7 +2,7 @@
 # Maintainer : Aaron Griffin 
 
 pkgname=oprofile
-pkgver=0.9.5
+pkgver=0.9.6
 pkgrel=1
 pkgdesc="a system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead."
 arch=('i686' 'x86_64')
@@ -12,7 +12,7 @@
 
source=(http://downloads.sourceforge.net/sourceforge/oprofile/$pkgname-$pkgver.tar.gz
 oprofile
 oprofile.conf)
-md5sums=('4b2ceca3fa013c95cc8d47c790807dc2'
+md5sums=('4e407093ac06200185d5a5e6437d7242'
  'c17ea27694be82f73a735354352f3558'
  '8da1393a0401e7cc9071e184902e50a3')
 



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

2009-10-31 Thread Allan McRae
Date: Saturday, October 31, 2009 @ 22:47:28
  Author: allan
Revision: 57597

Merged revisions 356,57595 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/oprofile/trunk


  r356 | aaron | 2008-04-19 08:56:27 +1000 (Sat, 19 Apr 2008) | 1 line
  
  Added svn:keywords to all PKGBUILDs

  r57595 | allan | 2009-11-01 12:46:30 +1000 (Sun, 01 Nov 2009) | 2 lines
  
  upgpkg: oprofile 0.9.5-1
  upstream update, FHS man packages


Modified:
  oprofile/repos/extra-i686/(properties)
  oprofile/repos/extra-i686/PKGBUILD

--+
 PKGBUILD |   30 +++---
 1 file changed, 15 insertions(+), 15 deletions(-)


Property changes on: oprofile/repos/extra-i686
___
Modified: svnmerge-integrated
   - /oprofile/trunk:1
   + /oprofile/trunk:1-57596

Modified: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2009-11-01 02:46:43 UTC (rev 57596)
+++ extra-i686/PKGBUILD 2009-11-01 02:47:28 UTC (rev 57597)
@@ -2,28 +2,28 @@
 # Maintainer : Aaron Griffin 
 
 pkgname=oprofile
-pkgver=0.9.3
-pkgrel=2
+pkgver=0.9.5
+pkgrel=1
 pkgdesc="a system-wide profiler for Linux systems, capable of profiling all 
running code at low overhead."
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 url="http://oprofile.sourceforge.net";
-license="GPL"
-depends=(qt3 popt gcc)
-source=(http://downloads.sourceforge.net/sourceforge/oprofile/$pkgname-$pkgver.tar.gz
 \
-oprofile oprofile.conf)
-md5sums=('bb91e4d5bd45ff0d5c3e6214653422b7' 'c17ea27694be82f73a735354352f3558'
+license=('GPL')
+depends=('qt3' 'popt' 'gcc')
+source=(http://downloads.sourceforge.net/sourceforge/oprofile/$pkgname-$pkgver.tar.gz
+oprofile
+oprofile.conf)
+md5sums=('4b2ceca3fa013c95cc8d47c790807dc2'
+ 'c17ea27694be82f73a735354352f3558'
  '8da1393a0401e7cc9071e184902e50a3')
 
 build()
 {
-  cd $startdir/src/$pkgname-$pkgver
+  cd $srcdir/$pkgname-$pkgver
   . /etc/profile.d/qt3.sh
-  ./configure --prefix=/usr --with-kernel-support --with-x
+  ./configure --prefix=/usr --mandir=/usr/share/man --with-kernel-support 
--with-x
   make || return 1
-  make DESTDIR=$startdir/pkg install
+  make DESTDIR=$pkgdir install
 
-  mkdir -p $startdir/pkg/etc/rc.d/
-  install -m755 $startdir/src/oprofile $startdir/pkg/etc/rc.d/
-  mkdir -p $startdir/pkg/etc/conf.d/
-  install -m755 $startdir/src/oprofile.conf $startdir/pkg/etc/conf.d/oprofile
+  install -Dm755 $srcdir/oprofile $pkgdir/etc/rc.d/oprofile
+  install -Dm755 $srcdir/oprofile.conf $pkgdir/etc/conf.d/oprofile
 }