summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7688aecbdd3bfc307665070367b05a9c9da0c255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Daniel Barbosa <dbarbosa0 at gmail dot com>

pkgname=plotxy
pkgver=nov2018
pkgrel=1
pkgdesc="A plotting and post-processing program developed by prof. Massimo Ceraolo from the University of Pisa, as part of his research activities involving simulation and post-processing of measured data"
arch=('x86_64')
url="http://ceraolo-plotxy.ing.unipi.it/default.htm"
license=(GPL3)
depends=()
conflicts=()
source=(http://ceraolo-plotxy.ing.unipi.it/PlotXY_Download/PlotXY-2018-Nov-Linux.zip)
sha256sums=('62876fb6329de24a09c7088ef70976ec726d409041cfa9c28d163b8483df1306')

package() {
	
	cd "$srcdir"/PlotXY-2018-Nov-Linux
	chmod +x PlotXY.AppImage
	./PlotXY.AppImage  --appimage-extract 
	cd squashfs-root
	install -d "$pkgdir"/opt/$pkgname
	cp PlotXY "$pkgdir"/opt/$pkgname
	install -d "$pkgdir"/usr/local/bin/
        

  install -Dm644 "${startdir}/plotxy.desktop" "${pkgdir}/usr/share/applications/plotxy.desktop"
  install -Dm644 "${startdir}/plotxy.png" "${pkgdir}/usr/share/pixmaps/plotxy.png"
  install -Dm755 "${startdir}/plotxy"   "${pkgdir}/opt/${pkgname}"
  
  ln -s /opt/$pkgname/plotxy  "$pkgdir"/usr/local/bin/plotxy

}