diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-29 17:16:34 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-29 17:16:34 -0500 |
commit | 12aa13899a57d29fffd7c52230b66353250f5539 (patch) | |
tree | 5fab9a3fbba89341eba720fec4999ba6f08deb17 | |
parent | 340aa775ce768953f5044622339c19affb0db33a (diff) |
add frc-libre/wpijavacv
-rw-r--r-- | frc-libre/wpijavacv/PKGBUILD | 31 | ||||
-rw-r--r-- | frc-libre/wpijavacv/SRCBUILD | 54 |
2 files changed, 85 insertions, 0 deletions
diff --git a/frc-libre/wpijavacv/PKGBUILD b/frc-libre/wpijavacv/PKGBUILD new file mode 100644 index 0000000..c42691f --- /dev/null +++ b/frc-libre/wpijavacv/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=wpijavacv +pkgver=208 +pkgrel=1 +pkgdesc="WPI extentensions to JavaCV." +arch=('any') +groups=(frc) +url="http://firstforge.wpi.edu/sf/projects/smartdashboard" +license=unknown +depends=(java-environment javacv) +makedepends=(apache-ant) +source=("https://gitorious.org/absfrc/sources/blobs/raw/master/$pkgname-$pkgver-$pkgrel-any.src.tar.xz") + +build() { + cd "$srcdir/$pkgname" + ln -s /usr/share/java/javacpp.jar lib + ln -s /usr/share/java/javacv.jar lib + ln -s /usr/share/java/javacv-platform.jar lib + ant jar + ant javadoc +} + +package() { + cd "$srcdir/$pkgname/dist" + install -m644 -D WPIJavaCV.jar "$pkgdir/usr/share/java/WPIJavaCV.jar" + install -d "$pkgdir/usr/share/doc/wpijavacv" + cp -r javadoc "$pkgdir/usr/share/doc/wpijavacv" +} + +md5sums=('8f7c7b60d4a12324fa12234c522165e1') diff --git a/frc-libre/wpijavacv/SRCBUILD b/frc-libre/wpijavacv/SRCBUILD new file mode 100644 index 0000000..3e91eab --- /dev/null +++ b/frc-libre/wpijavacv/SRCBUILD @@ -0,0 +1,54 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +# You need to create a login at <http://firstforge.wpi.edu/sf> and set +# "$_svnuser" and "$_svnpass". The account creation is free and automatic. + +pkgname=wpijavacv +pkgver=208 +pkgrel=1 +pkgdesc="WPI extentensions to JavaCV." +arch=('any') +groups=(frc) +url="http://firstforge.wpi.edu/sf/projects/smartdashboard" +license=unknown +makedepends=('subversion' 'findutils') +options=('!strip' 'docs' '!zipman' 'emptydirs') + +_svntrunk=http://firstforge.wpi.edu/svn/repos/smart_dashboard/trunk/WPIJavaCV +_svnver=208 +_svnuser=YOURUSERNAME +_svnpass=YOURPASSWORD + +build() { + cd "$srcdir" + msg "Connecting to SVN server...." + + if [[ -d "$pkgname/.svn" ]]; then + cd "$pkgname" && svn up -r "$_svnver" + else + svn co \ + --username "$_svnuser" \ + --password "$_svnpass" \ + --config-dir ./ \ + "$_svntrunk" -r "$_svnver" "$pkgname" + fi + + msg "SVN checkout done or server timeout" + + msg "Removing .svn files..." + find . -name .svn -print0 | xargs -0 rm -rf + + msg "Removing precompiled binaries..." + cd "$srcdir/$pkgname" + rm -v lib/*.jar + rm -rfv dist + + msg "Removing old log files..." + rm -v *.log +} + +package() { + PKGEXT=${SRCEXT} + PKGDEST=${SRCDEST} + cp -a "${srcdir}/${pkgname}" "${pkgdir}/" +} |