Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Nru dart-sdk.orig/PKGBUILD dart-sdk/PKGBUILD
- --- dart-sdk.orig/PKGBUILD 2012-03-17 12:55:08.000000000 +0300
- +++ dart-sdk/PKGBUILD 2012-09-18 01:31:33.244638522 +0300
- @@ -1,6 +1,6 @@
- # Maintainer: Usagi Ito <usagi@WonderRabbitProject.net>
- pkgname=dart-sdk
- -pkgver=20120317
- +pkgver=12439
- pkgrel=1
- pkgdesc="the Dart language SDK. (integration version as tested)"
- arch=('i686' 'x86_64')
- @@ -12,40 +12,22 @@
- provides=()
- conflicts=(dart-sdk-latest)
- replaces=()
- -source=()
- install=
- changelog=
- noextract=()
- -md5sums=()
- -zip_url='http://gsdview.appspot.com/dart-editor-archive-integration/latest/dart-linux.zip'
- -zip_filename=`basename ${zip_url}`
- -ziped_directory='dart-sdk'
- -
- -build(){
- - pushd $srcdir
- -
- - msg 'get the binary'
- - if [ -f $zip_filename ]
- - then
- - rm -rf $zip_filename
- - fi
- - wget -N $zip_url
- - if [ -d $ziped_directory ]
- - then
- - rm -rf $ziped_directory
- - fi
- - unzip $zip_filename
- - chmod -R +r $ziped_directory/
- - chmod -R +x $ziped_directory/bin/*
- -
- - popd
- -}
- +if test "$CARCH" == x86_64; then
- + source=('http://gsdview.appspot.com/dart-editor-archive-integration/latest/dartsdk-linux-64.tar.gz')
- + md5sums=('fc924df599644d60be4eea51900d0fc5')
- +else
- + source=('http://gsdview.appspot.com/dart-editor-archive-integration/latest/dartsdk-linux-32.tar.gz')
- + md5sums=('d18059f840b63a83147f14a8d6e46e81')
- +fi
- package(){
- - destination_directory=${pkgdir}/usr/local
- - mkdir -p $destination_directory
- - cp -a ${srcdir}/$ziped_directory/* $destination_directory
- - find $destination_directory -type d -print | xargs chmod +x
- + mkdir -p ${pkgdir}/opt
- + find ${srcdir}/dart-sdk -perm -u+x -exec chmod +x '{}' +
- + find ${srcdir}/dart-sdk -perm -u+r -exec chmod +r '{}' +
- + cp -r $srcdir/dart-sdk ${pkgdir}/opt/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement