[arch-commits] Commit in barcode/repos (3 files)

Eric Bélanger eric at archlinux.org
Tue Mar 17 03:15:21 UTC 2009


    Date: Monday, March 16, 2009 @ 23:15:21
  Author: eric
Revision: 30176

Fixed svn conflict

Added:
  barcode/repos/extra-x86_64/barcode.install
    (from rev 30175, barcode/trunk/barcode.install)
Modified:
  barcode/repos/extra-x86_64/	(properties)
  barcode/repos/extra-x86_64/PKGBUILD

-----------------+
 PKGBUILD        |   20 ++++++++++----------
 barcode.install |   20 ++++++++++++++++++++
 2 files changed, 30 insertions(+), 10 deletions(-)


Property changes on: barcode/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /barcode/trunk:1
   + /barcode/trunk:1-30175

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2009-03-17 03:14:15 UTC (rev 30175)
+++ extra-x86_64/PKGBUILD	2009-03-17 03:15:21 UTC (rev 30176)
@@ -3,21 +3,21 @@
 
 pkgname=barcode
 pkgver=0.98
-pkgrel=1
+pkgrel=2
 pkgdesc="GNU Barcode is a tool to convert text strings to printed bars."
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 url="http://www.gnu.org/software/barcode/barcode.html"
-depends=(glibc)
-conflicts=()
-backup=()
-install=
+license=('GPL')
+depends=('glibc')
+install=barcode.install
 source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
-
 md5sums=('7f10c3307b84a19a4ab2fa4b3f2974da')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
-  ./configure --prefix=/usr
+  cd $srcdir/$pkgname-$pkgver
+  ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info || return 1
   make || return 1
-  make prefix=$startdir/pkg/usr install
+  make prefix=$pkgdir/usr MAN1DIR=$pkgdir/usr/share/man/man1 \
+    MAN3DIR=$pkgdir/usr/share/man/man3 INFODIR=$pkgdir/usr/share/info install || return 1
+  gzip $pkgdir/usr/share/info/barcode.info
 }

Copied: barcode/repos/extra-x86_64/barcode.install (from rev 30175, barcode/trunk/barcode.install)
===================================================================
--- extra-x86_64/barcode.install	                        (rev 0)
+++ extra-x86_64/barcode.install	2009-03-17 03:15:21 UTC (rev 30176)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(barcode.info.gz)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}




More information about the arch-commits mailing list