updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / createrepo / PKGBUILD
blobc5d8210ba1a6b22dbf9799eb1652428c77ac8e42
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Chris Tusa <linisys@gmail.com>
4 pkgname=createrepo
5 pkgver=0.9.9
6 pkgrel=1
7 pkgdesc='A tool to create yum repositories from ArchLinux systems.'
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url='http://createrepo.baseurl.org'
11 depends=('python-lxml' 'rpm' 'yum')
12 source=("http://createrepo.baseurl.org/download/createrepo-${pkgver}.tar.gz")
13 md5sums=('10641f19a40e9f633b300e23dde00349')
15 build() {
16   cd createrepo-${pkgver}
18   # python2 fixes
19   find -type f -exec sed -i -e 's_#!/usr/bin/python_&2_' -e 's_python -c_python2 -c_' -e 's_PYTHON=python_&2_' {} \;
21   make
24 package() {
25   cd createrepo-${pkgver}
27   make DESTDIR=${pkgdir} install