blob: ab085eb8a1ba719093617837c2d18892f3e1ec97 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: max-k <max-k@post.com>
# Contributor: max-k <max-k@post.com>
# shellcheck disable=SC2034,SC2154
if [ "$(uname -m)" = "x86_64" ] ; then
_arch="x86_64"
else
_arch="x86"
fi
_major="12.0.1"
_minor=18441
pkgname="komodo-edit"
_bigname="Komodo-Edit"
pkgver="${_major}_${_minor}"
pkgrel=2
pkgdesc="Free & Open-Source counterpart of ActiveState Komodo IDE - XUL based"
arch=(i686 x86_64)
url="http://www.activestate.com/komodo-edit"
license=('MPL')
depends=('dbus-glib' 'glibc>=2.4' 'libjpeg-turbo' 'gcc-libs' 'gtk2')
optdepends=('xterm: can be used by komodo-toolbox')
conflicts=('komodoedit' 'komodo-ide' 'komodo-ide-nightly')
#options=('!strip')
source=('_install.py.patch' 'activestate.py.patch')
_srcbase="http://downloads.activestate.com/Komodo/releases"
source_i686=("${_srcbase}/${_major}/${_bigname}-${_major}-${_minor}-linux-x86.tar.gz")
source_x86_64=("${_srcbase}/${_major}/${_bigname}-${_major}-${_minor}-linux-x86_64.tar.gz")
sha256sums=('98177ee92e13036baa0a4f61ef398c0e23ab5d250cf7aa1b1c5a557efaaec3a8'
'c68d7e94955e0f7b32cf3863136891d6441d9dd3a6346481b911d2c250cf32e9')
sha256sums_i686=('d00eaaec20eed86a6d7592bc47aba69934bedb1481a590fb72d20944b50e1c5d')
sha256sums_x86_64=('b51783eb1cb8ce60b26e506ee00cd54ff31b61830622c5e5a8c77405e9c54e48')
prepare() {
cd "${srcdir}/${_bigname}-${_major}-${_minor}-linux-${_arch}" || return 1
sed -i "s/__VERSION__/${_major}-${_minor}/" "${srcdir}/_install.py.patch"
sed -i "s/__VERSION__/${_major}-${_minor}/" "${srcdir}/activestate.py.patch"
if [ $_arch == "x86_64" ] ; then
sed -i "s/__ARCH__/x86_64/" "${srcdir}/_install.py.patch"
sed -i "s/__ARCH__/x86_64/" "${srcdir}/activestate.py.patch"
else
sed -i "s/__ARCH__/x86/" "${srcdir}/_install.py.patch"
sed -i "s/__ARCH__/x86/" "${srcdir}/activestate.py.patch"
fi
patch -p0 -i "${srcdir}/_install.py.patch" support/_install.py
patch -p0 -i "${srcdir}/activestate.py.patch" INSTALLDIR/lib/python/lib/python*.*/activestate.py
}
build() {
echo "" > /dev/null
}
package() {
cd "${srcdir}/${_bigname}-${_major}-${_minor}-linux-${_arch}" || return 1
./install.sh -v -s -I "${pkgdir}/opt/${pkgname}" --dest-dir "/opt/${pkgname}" >/dev/null 2>&1
# Purge *.pyc and *.pyo files with references to $pkgdir and/or $srcdir
find "${pkgdir}/opt/${pkgname}" -iname '*.py?' -delete
_dfile=${pkgdir}/opt/${pkgname}/share/desktop/${pkgname}-${_major:0:2}.desktop
sed -i "s#${pkgdir}##" "$_dfile"
install -Dm644 "$_dfile" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -d "${pkgdir}/usr/bin"
ln -sf /opt/komodo-edit/bin/komodo "${pkgdir}/usr/bin/komodo"
}
|