-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
44 lines (31 loc) · 1.43 KB
/
PKGBUILD
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
# Maintainer: Sasha Khamkov <[email protected]>
pkgname=gisto
pkgver=0.3.1
pkgrel=1
epoch=
pkgdesc="Cross-platform gist snippets management desktop application that allows you and your team share code snippets fast and easily. Based on GitHub Gist Infrastructure which means you can use all your existing snippets by connecting your GitHub account."
arch=("i686" "x86_64")
url="http://www.gistoapp.com/"
license=("MIT")
groups=()
options=(!strip)
depends=("gconf" "ttf-ms-fonts")
_gisto_arch="x86"
_gisto_arch_name="i32"
[ "$CARCH" = "x86_64" ] && _gisto_arch="x86_64" && _gisto_arch_name="x64"
source=("http://download.gistoapp.com/Gisto-$pkgver-Linux_${_gisto_arch}.tar.gz")
md5sums=('278127a3d3367b62f6fec3bfb480171a')
[ "$CARCH" = "x86_64" ] && md5sums[0]='f140042d45b965695c5e4c3862daaaf3'
package() {
printf "\n\n\n\e[43m \e[0m INSTALLING...\n\n\n------------\n\n\n"
printf "\e[43m \e[0m CREATE PACKAGE STRUCTURE \n\n\n"
mkdir -p $pkgdir/{opt,usr/bin}
cp -R $srcdir/Gisto-$pkgver-linux_${_gisto_arch_name}/gisto $pkgdir/opt/
cp -R $srcdir/Gisto-$pkgver-linux_${_gisto_arch_name}/share $pkgdir/usr/
printf "\e[43m \e[0m APPLY LIBUDEV FIX \n\n\n"
mkdir -p $pkgdir/opt/gisto/lib
ln -sf /usr/lib/libudev.so.1 $pkgdir/opt/gisto/lib/libudev.so.0
printf "\e[43m \e[0m CREATE GISTO SYSTEM LINK \n\n\n"
ln -sf /opt/gisto/gisto $pkgdir/usr/bin/gisto
printf "\e[43m \e[0m DONE PREPARATIONS :) \n\n\n"
}