milis/talimatname/genel/junit/talimat

25 lines
1.1 KiB
Plaintext

# 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/
# Packager: alihan-ozturk28@hotmail.com
# Depends on: apache-ant unzip
name=junit
version=4.12
release=1
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)
build() {
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 ..
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
}