summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b17721ae9ec72478c374c4263e03d76e6ace182 (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
34
35
36
# Maintianer: Jordan Pierce <jordan.pierce.00@gmail.com>
pkgname=nion-swift
pkgver=0.5.7
pkgrel=1
pkgdesc="Program developed by Nion Co. for interfacing with electron microscopes and for data analysis."
arch=('i686' 'x86_64')
url="http://nion.com/swift/"
license=('GPL')
depends=('qt5-base' 'qt5-svg' 'python' 'python-numpy' 'python-scipy')
makedepend=('unzip')
# install=$pkgname.install
source=("${pkgname}.zip::http://nion.com/swift/files/NionSwift_Linux_x64_python3.4m_0.5.7.zip")
# source=("${pkgname}.zip::http://lythium.uoregon.edu/~jordan/NionSwift_Linux_x64_0.5.1.zip")
# noextract=("NionSwift_Linux_x64_0.5.1.zip")
md5sums=("SKIP")
# pkgdir="/usr/local/"

# build() {
#     cd "$srcdir"
#     msg "Uzipping"
#     unzip ${pkgname}.zip
#     # find . -name "*.pyc" -exec rm -f {} \;
# }

package() {
    cd "$srcdir"
    mkdir -p $pkgdir/usr/local
    cp -R $srcdir/NionSwift $pkgdir/usr/local/

    mkdir -p $pkgdir/usr/share/{applications,pixmaps}
    install -Dm644 $startdir/nionswift.desktop $pkgdir/usr/share/applications/
    install -Dm644 $startdir/nionswift.png $pkgdir/usr/share/pixmaps/

    mkdir -p $pkgdir/usr/bin
    ln -s /usr/local/NionSwift/NionSwift $pkgdir/usr/bin/NionSwift
}