[arch-commits] Commit in file/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Sun May 10 05:55:21 EDT 2009


    Date: Sunday, May 10, 2009 @ 05:55:21
  Author: allan
Revision: 38767

upgpkg: file 5.03-2
    move magic file to more standard location(s)

Modified:
  file/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-05-10 08:37:43 UTC (rev 38766)
+++ PKGBUILD	2009-05-10 09:55:21 UTC (rev 38767)
@@ -4,7 +4,7 @@
 
 pkgname=file
 pkgver=5.03
-pkgrel=1
+pkgrel=2
 pkgdesc="File type identification utility"
 arch=('i686' 'x86_64')
 license=('custom')
@@ -17,8 +17,12 @@
 
 build() {
   cd ${srcdir}/$pkgname-$pkgver
-  ./configure --prefix=/usr --datadir=/usr/share/misc
+  sed -i 's#\$(datadir)/misc#\$(datadir)#' configure 
+  ./configure --prefix=/usr --datadir=/usr/share/file
   make || return 1
   make DESTDIR=${pkgdir} install
+  install -dm755 ${pkgdir}/usr/share/misc
+  ln -s ../file/magic.mgc ${pkgdir}/usr/share/misc
+  
   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
 }



More information about the arch-commits mailing list