opt/subunit/Pkgfile

26 lines
576 B
Plaintext
Raw Normal View History

2016-09-01 05:12:56 +02:00
# Description: Python unit testing library
2015-01-27 11:28:35 +01:00
# URL: https://launchpad.net/subunit
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
2015-01-28 12:34:33 +01:00
# Depends on: python check cppunit
2015-01-27 11:28:35 +01:00
name=subunit
2016-09-01 05:12:56 +02:00
version=1.2.0
2015-01-27 11:28:35 +01:00
release=1
2016-09-01 05:12:56 +02:00
source=(https://launchpad.net/subunit/trunk/${version%.*}/+download/$name-$version.tar.gz)
2015-01-27 11:28:35 +01:00
build () {
cd $name-$version
2015-01-28 12:34:33 +01:00
./configure \
--prefix=/usr
2015-01-27 11:28:35 +01:00
make
make DESTDIR=$PKG install
# Avoid conflict with p5-subunit and py-subunit
rm -rf $PKG/usr/lib/perl* $PKG/usr/lib/python*
# The binaries are actually python and perl scripts
rm -rf $PKG/usr/bin
}