summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 447fecbcc96cc70210d606592b1674a767a13bfe (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
37
38
39
40
# 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' 'python34')
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/NionSwift_python3.4m_0.5.7"
    echo "`ls`"
    mkdir -p $pkgdir/usr/local
    cp -R NionSwift $pkgdir/usr/local/
    echo "startdir $startdir"
    echo "pkgdir $pkgdir"
    echo "`ls $startdir`"

    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 $pkgdir/usr/local/NionSwift $pkgdir/usr/bin/NionSwift
}