2016-02-24 01:27:23 +01:00
# Description: The JUnit package contains a simple, open source framework to write and run repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. JUnit features include assertions for testing expected results, test fixtures for sharing common test data, and test runners for running tests.
# URL: http://junit.org/
2016-07-24 16:00:22 +02:00
# Packager: alihan-ozturk28@hotmail.com
2016-02-24 01:27:23 +01:00
# Depends on: apache-ant unzip
description="Open source framework to write and run repeatable tests. It is an instance of the xUnit."
name=junit
2016-07-24 16:00:22 +02:00
version=4.12
2016-02-24 01:27:23 +01:00
release=1
2016-07-24 16:00:22 +02:00
source=(https://github.com/junit-team/junit4/releases/download/r4.12/junit-4.12.jar
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-1.3.tgz)
2016-02-24 01:27:23 +01:00
build() {
2016-07-24 16:00:22 +02:00
cd hamcrest-1.3
install -dm755 $PKG/usr/share/java/hamcrest
for j in core library generator integration; do
cp hamcrest-${j}-1.3.jar $PKG/usr/share/java/hamcrest/${j}-1.3.jar
ln -s ${j}-1.3.jar $PKG/usr/share/java/hamcrest/${j}.jar
ln -s hamcrest/${j}-1.3.jar $PKG/usr/share/java/hamcrest-${j}.jar
done
cd ..
2016-02-24 01:27:23 +01:00
2016-07-24 16:00:22 +02:00
install -D -m 644 $SRC/$name-$version.jar $PKG/usr/share/java/$name-$version.jar
ln -s $name-$version.jar $PKG/usr/share/java/$name.jar
2016-02-24 01:27:23 +01:00
}