Package Details: 2gis 3.16.3.0-1

Git Clone URL: https://aur.archlinux.org/2gis.git (read-only)
Package Base: 2gis
Description: Geographic Information System (GIS) for some Russian and Ukrainian cities.
Upstream URL: http://help.2gis.ru/linux/
Licenses: Adware
Submitter: None
Maintainer: AlexTalker
Last Packager: AlexTalker
Votes: 51
Popularity: 0.000002
First Submitted: 2009-04-05 14:50
Last Updated: 2016-03-16 07:27

Latest Comments

« First ‹ Previous 1 2 3

widowild commented on 2010-08-02 09:09

remplace
if [ "${CARCH}" = 'x86_64' ]; then
depends=('bin32-wine>=1.1.24')
elif [ "${CARCH}" = 'i686' ]; then
depends=('wine>=1.1.24')
fi

by

depends=('wine>=1.1.24')

wine exist for x86_64:
http://www.archlinux.org/packages/community/x86_64/wine/

haawda commented on 2010-07-11 02:23

Please do not use $startdir anymore, use $srcdir and $pkgdir resp.

Please use install in favour over mkdir -p and cp.

hokum commented on 2010-07-11 00:08

# Contributor: stanislaw <i@archuser.pp.ru>
# Contributor: wido <widomaker2k7@gmail.com>

pkgname=2gis
pkgver=3.0.7.1
pkgrel=1
pkgdesc="Geographic Information System (GIS) for some Russian and Ukrainian cities."
arch=('i686' 'x86_64')
url="http://help.2gis.ru/linux/"
license=('custom')
if [ "${CARCH}" = 'x86_64' ]; then
depends=('bin32-wine>=1.1.24')
elif [ "${CARCH}" = 'i686' ]; then
depends=('wine>=1.1.24')
fi
source=("http://download.2gis.ru/arhives/2GISShell-${pkgver}.orig.zip"
"2gis.xpm"
"LICENSE.ru"
"LICENSE.ua")
md5sums=('6e3ab00ef0624dce663e731868f49f23'
'f73e2e7879338958176cd066449f2aaa'
'c7fb692d8ac804b68d680165241c339b'
'841a50883a42fe12688e84f66bd26caf')

build() {

cd $startdir

# Extracting

#unzip 2GISShell-${pkgver}.orig.zip || return 1

# Installing to /opt/2gis
mkdir -p $startdir/pkg/opt/2gis/
cp -R $startdir/src/2gis/3.0/* $startdir/pkg/opt/2gis || return 1

mkdir -p $startdir/pkg/usr/share/licenses/2gis/
cp $startdir/LICENSE.ru $startdir/pkg/usr/share/licenses/2gis || return 1
cp $startdir/LICENSE.ua $startdir/pkg/usr/share/licenses/2gis || return 1


# Creating links
chmod a+rx $startdir/pkg/opt/2gis/
mkdir -p $startdir/pkg/usr/bin/
touch $startdir/pkg/usr/bin/2gis

mkdir -p $startdir/pkg/usr/share/pixmaps/
cp $startdir/2gis.xpm $startdir/pkg/usr/share/pixmaps/


mkdir -p $startdir/pkg/usr/share/applications/
touch $startdir/pkg/usr/share/applications/2gis.desktop
echo "[Desktop Entry]" | tee $startdir/pkg/usr/share/applications/2gis.desktop
echo "Encoding=UTF-8" | tee -a $startdir/pkg/usr/share/applications/2gis.desktop
echo "Type=Application" | tee -a $startdir/pkg/usr/share/applications/2gis.desktop
echo "Name=2GIS ДубльГИС 3.0" | tee -a $startdir/pkg/usr/share/applications/2gis.desktop
echo "Exec=2gis" | tee -a $startdir/pkg/usr/share/applications/2gis.desktop
echo "Icon=2gis" | tee -a $startdir/pkg/usr/share/applications/2gis.desktop
echo "StartupNotify=true" | tee -a $startdir/pkg/usr/share/applications/2gis.desktop
echo "Categories=Application;Utility;" | tee -a $startdir/pkg/usr/share/applications/2gis.desktop

# Creating launch script:
echo "#!/bin/bash" | tee $startdir/pkg/usr/bin/2gis
echo "wine /opt/2gis/grym.exe -nomta" | tee -a $startdir/pkg/usr/bin/2gis
chmod +x $startdir/pkg/usr/bin/2gis
}