updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / deltarpm-git / PKGBUILD
blobea301f3abeded01599a02a2ee1438270eaab135e
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
3 pkgname=deltarpm-git
4 pkgver=20110225
5 pkgrel=1
6 pkgdesc='Package for deltarpms'
7 arch=('i686' 'x86_64')
8 license=('BSD')
9 url='http://gitorious.org/deltarpm/deltarpm'
10 depends=('python-lxml' 'rpm' 'yum')
12 _gitroot='git://gitorious.org/deltarpm/deltarpm.git'
13 _gitname='deltarpm'
15 build() {
16   if [ -d ${_gitname} ] ; then
17     cd ${_gitname}
18     git pull origin
19   else
20     git clone ${_gitroot} ${_gitname}
21     cd ${_gitname}
22   fi
24   # python2 fixes
25   #find -type f -exec sed -i -e 's_#!/usr/bin/python_&2_' -e 's_python -c_python2 -c_' -e 's_PYTHON=python_&2_' {} \;
26   sed -i -e 's_usr/local_usr_' -e 's/python python3/python2 python3/' Makefile
28   make all python
31 package() {
32   cd ${_gitname}
34   make DESTDIR=${pkgdir} install
36   install -D -m644 LICENSE.BSD \
37     ${pkgdir}/usr/share/licenses/deltarpm-git/LICENSE.BSD