SHARE
TWEET

overlap2d_pkgbuild

a guest Dec 19th, 2015 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Hector Mercade Ramirez <hectormercade@gmail.com>
  2. pkgname=overlap2d
  3. pkgver=0.1.2
  4. pkgrel=0
  5. pkgdesc="Overlap2D"
  6. arch=('any')
  7. url="http://overlap2d.com"
  8. license=('APACHE2')
  9. depends=('java-environment')
  10. source=('http://overlap2d.com/bin/overlap2d.tar.gz'
  11.     'overlap2d.desktop'
  12.     'http://overlap2d.com/wp-content/themes/overlap2d-v3/img/logo.png')
  13. md5sums=('cbb5c07dd380ac0b17c545ee044068fd'
  14.      '8089e89b4d6e4fc55e4487da130d7165'
  15.      '1577999c9e742b7259d57e3b0987c864')
  16.  
  17. build() {
  18.   cd $srcdir
  19.   echo -e '#!/bin/sh' "\njava -jar /usr/share/java/overlap2d/overlap2D-${pkgver}.jar" > overlap2d
  20. }
  21.  
  22. package() {
  23.     cd $srcdir
  24.  
  25.     tar -xvf overlap2d.tar.gz
  26.     mkdir -p $pkgdir/usr/share/java/$pkgname
  27.     mkdir -p $pkgdir/usr/bin/
  28.     mkdir -p $pkgdir/usr/share/applications
  29.     mkdir -p $pkgdir/usr/share/pixmaps
  30.     install -Dm755 overlap2D-$pkgver.jar $pkgdir/usr/share/java/$pkgname/
  31.     install -dDm755 examples $pkgdir/usr/share/java/$pkgname/
  32.     install -dDm755 plugins $pkgdir/usr/share/java/$pkgname/
  33.     install -Dm755 overlap2d $pkgdir/usr/bin
  34.     install -Dm755 overlap2d.desktop $pkgdir/usr/share/applications/
  35.     install -Dm755 logo.png $pkgdir/usr/share/pixmaps/overlap2d.png
  36.     #make DESTDIR="$pkgdir/" install
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top