mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
33 lines
1013 B
Bash
33 lines
1013 B
Bash
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=xmldiff
|
|
pkgver=0.6.10
|
|
pkgrel=1
|
|
pkgdesc="A python tool that figures out the differences between two similar XML files, in the same way the diff utility does it"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.logilab.org/project/xmldiff/"
|
|
license=('GPL2')
|
|
depends=('python2' 'libxslt' 'jade')
|
|
optdepends=('docbook-xsl: render revision info')
|
|
categories=('programming')
|
|
source=(http://ftp.logilab.org/pub/$pkgname/$pkgname-$pkgver.tar.gz)
|
|
md5sums=('a61e6e95a130e3bd53f5ea5616cc5314')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
sed -i 's@^#!.*python$@#!/usr/bin/python2@' main.py
|
|
python2 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
python2 setup.py install --root="$pkgdir/" --optimize=1
|
|
install -m755 -d "$pkgdir/usr/share/man/man1"
|
|
install -m644 man/*.1 "$pkgdir/usr/share/man/man1"
|
|
} |