summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9f2938dc64711e4e25cf88db78b4104ef3bb9e2 (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
41
42
# Maintainer: Erim <Erim4@yahoo.com>

pkgname=ape
pkgver=3.1.3
pkgrel=1
pkgdesc="A plasmid editor"
arch=('any')
url="http://biologylabs.utah.edu/jorgensen/wayned/ape/"
license=('proprietary')
depends=('tclkit' 'sdx')
makedepends=('imagemagick')
source=("https://jorgensen.biology.utah.edu/wayned/ape/Download/Linux/ApE_linux_current.zip")
md5sums=('SKIP')

build() {
    cat <<EOF > ape
#!/bin/sh
tclkit-dyn /opt/ApE/ApE.tcl $@
EOF

    cat <<EOF > ApE.desktop
[Desktop Entry]
Name=ApE
GenericName=A Plasmid Editor
Comment=a tcl/tk plasmid editor
Exec=ape
Icon=/opt/ApE/Accessory Files/Icons and images/ApE_icon_200.png
Terminal=false
Type=Application
Categories=Education;Science;Biology;
EOF
}

package() {
    install -d "$pkgdir/opt"
    cp -r "./ApE Linux" "$pkgdir/opt/ApE"
    install -m755 -D ape "$pkgdir/usr/bin/ape"
#    install -m644 -D ape-48x48.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/ape.png"
#    install -m644 -D ape-128x128.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/ape.png"
    install -m644 -D ApE.desktop "$pkgdir/usr/share/applications/ApE.desktop"
}