diff options
author | Frederik "Freso" S. Olesen | 2012-06-02 15:56:39 +0200 |
---|---|---|
committer | Frederik "Freso" S. Olesen | 2012-06-02 15:56:39 +0200 |
commit | b69904ee63bdbafcd61145472aa3bd9d0a20e21e (patch) | |
tree | 77903d3effb0eac323e79dca6ef1b70199b87ad8 | |
parent | f97111eefbe2bd964b479cd5400d08884222754e (diff) | |
download | aur-b69904ee63bdbafcd61145472aa3bd9d0a20e21e.tar.gz |
gdatafs: Move the gdatafs launcher script into its own file.
Using gdatafs.sh to not conflict with the unpacked "gdatafs" folder
in $srcdir.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 | ||||
-rw-r--r-- | gdatafs.sh | 5 |
3 files changed, 12 insertions, 5 deletions
@@ -8,7 +8,9 @@ pkgbase = gdatafs depends = fuse depends = java-runtime source = http://sourceforge.net/projects/gdatafs/files/gdatafs%201.0.2.tar.gz + source = gdatafs.sh md5sums = 77e5207f1b2cfb72307087ebceb7b801 + md5sums = 76bcee2cd35ec0c78e3a3985dc600882 pkgname = gdatafs @@ -7,8 +7,10 @@ pkgdesc="Gdatafs is a FUSE implemtation that mount picassa web and youtube to yo url="http://gdatafs.sourceforge.net" license="GPL" depends=('fuse' 'java-runtime') -source=(http://sourceforge.net/projects/gdatafs/files/gdatafs%20$pkgver.tar.gz) -md5sums=('77e5207f1b2cfb72307087ebceb7b801') +source=(http://sourceforge.net/projects/gdatafs/files/gdatafs%20$pkgver.tar.gz + gdatafs.sh) +md5sums=('77e5207f1b2cfb72307087ebceb7b801' + '76bcee2cd35ec0c78e3a3985dc600882') arch=('any') build() { pushd "$srcdir"/gdatafs || return 1 @@ -17,8 +19,6 @@ build() { install -D "$file" "$pkgdir"/opt/gdatafs/"$file" || return 1 fi || return 1 done || return 1 - install -d "$pkgdir"/usr/bin || return 1 - echo -e "#! /bin/sh\n\npushd /opt/gdatafs > /dev/null\n\t/opt/gdatafs/gdatafs \"\$1\" \"\$2\" \"\$3\"\npopd > /dev/null" > "$pkgdir"/usr/bin/gdatafs || return 1 - chmod 755 "$pkgdir"/usr/bin/gdatafs || return 1 + install -Dm755 "$srcdir"/gdatafs.sh "$pkgdir"/usr/bin/gdatafs || return 1 popd || return 1 } diff --git a/gdatafs.sh b/gdatafs.sh new file mode 100644 index 000000000000..2be396531631 --- /dev/null +++ b/gdatafs.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +pushd /opt/gdatafs > /dev/null + /opt/gdatafs/gdatafs "$1" "$2" "$3" +popd > /dev/null |