diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-29 22:21:29 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-29 22:21:29 -0500 |
commit | d9b66addba21bb671cbc957c76acc1dc94a10301 (patch) | |
tree | fb952bf3b46f35387543b755185774c470bba66f /frc-libre/smartdashboard-extension-wpicameraextension/SRCBUILD | |
parent | bbe9106bc4e52b96d4d774a588285275d3cdfad1 (diff) |
add frc-libre/smartdashboard-extension-wpicameraextension
Diffstat (limited to 'frc-libre/smartdashboard-extension-wpicameraextension/SRCBUILD')
-rw-r--r-- | frc-libre/smartdashboard-extension-wpicameraextension/SRCBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/frc-libre/smartdashboard-extension-wpicameraextension/SRCBUILD b/frc-libre/smartdashboard-extension-wpicameraextension/SRCBUILD new file mode 100644 index 0000000..a14b021 --- /dev/null +++ b/frc-libre/smartdashboard-extension-wpicameraextension/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=smartdashboard-extension-wpicameraextension +pkgver=210 +pkgrel=1 +pkgdesc="WPI Camera Extension for SmartDashboard" +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/extensions/camera/WPICameraExtension +_svnver=210 +_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 the developer's personal files..." + cd "$srcdir/$pkgname" + rm -rfv nbproject/private + + msg "Removing precompiled binaries..." + cd "$srcdir/$pkgname" + rm -rfv dist +} + +package() { + PKGEXT=${SRCEXT} + PKGDEST=${SRCDEST} + cp -a "${srcdir}/${pkgname}" "${pkgdir}/" +} |