[arch-commits] Commit in file/trunk (PKGBUILD file-5.05-python-3.2.patch)

Stéphane Gaudreault stephane at archlinux.org
Thu Feb 24 15:25:48 UTC 2011


    Date: Thursday, February 24, 2011 @ 10:25:47
  Author: stephane
Revision: 111169

upgpkg: file 5.05-2
Add detection of python 3.2 pyc/pyo files

Added:
  file/trunk/file-5.05-python-3.2.patch
Modified:
  file/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |   11 ++++++++---
 file-5.05-python-3.2.patch |   11 +++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-02-24 15:10:05 UTC (rev 111168)
+++ PKGBUILD	2011-02-24 15:25:47 UTC (rev 111169)
@@ -4,7 +4,7 @@
 
 pkgname=file
 pkgver=5.05
-pkgrel=1
+pkgrel=2
 pkgdesc="File type identification utility"
 arch=('i686' 'x86_64')
 license=('custom')
@@ -13,9 +13,11 @@
 depends=('glibc' 'zlib')
 options=('!libtool')
 source=(ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz 
-        file-5.05-zip64.patch)
+        file-5.05-zip64.patch 
+        file-5.05-python-3.2.patch)
 md5sums=('0b429063710457be2bd17a18389cb018'
-         '385f020467debd98bd2d8df6143f93d0')
+         '385f020467debd98bd2d8df6143f93d0'
+         '3f5e147be5b9c36c74323a1317328538')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -24,6 +26,9 @@
   # identify zip64 files
   patch -Np1 -i ${srcdir}/file-5.05-zip64.patch
 
+  # identify python 3.2 files
+  patch -Np1 -i ../file-5.05-python-3.2.patch
+
   ./configure --prefix=/usr --datadir=/usr/share/file
   make 
 }

Added: file-5.05-python-3.2.patch
===================================================================
--- file-5.05-python-3.2.patch	                        (rev 0)
+++ file-5.05-python-3.2.patch	2011-02-24 15:25:47 UTC (rev 111169)
@@ -0,0 +1,11 @@
+diff -Naur file-5.05.ori/magic/Magdir/python file-5.05/magic/Magdir/python
+--- file-5.05.ori/magic/Magdir/python	2010-12-31 10:15:28.000000000 -0800
++++ file-5.05/magic/Magdir/python	2011-02-24 07:07:36.030004467 -0800
+@@ -20,6 +20,7 @@
+ 0	belong		0x03f30d0a	python 2.7 byte-compiled
+ 0	belong		0x3b0c0d0a	python 3.0 byte-compiled
+ 0	belong		0x4f0c0d0a	python 3.1 byte-compiled
++0	belong		0x6c0c0d0a	python 3.2 byte-compiled
+ 
+ 0	search/1/w	#!\ /usr/bin/python	Python script text executable
+ !:mime text/x-python




More information about the arch-commits mailing list