summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 932334fac28ad95fe49d01e2b1bd4e6b05307c84 (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
# Maintainer: Trevor <assviolat0r at live dot com>
# Co-maintainer: Giovanni 'ItachiSan' Santini <giovannisantini93@yahoo.it>
pkgname=skype-desktop-bin
pkgver=37.deb39db
pkgrel=1
pkgdesc="An unofficial client of Skype for Linux, running on top of Node Webkit."
arch=('i686' 'x86_64')
url="https://github.com/haskellcamargo/skype-unofficial-client"
license=('MIT')
depends=('gconf')
optdepends=('libnotify')
makedepends=('make' 'git')
#options=('!strip')
# Actually check for the architecture (Trevor, is so much juice! :D)
[ "$CARCH" = "i686" ]   && _platform=linux_x86
[ "$CARCH" = "x86_64" ] && _platform=linux_x64
source=(git+https://github.com/haskellcamargo/skype-unofficial-client.git)
md5sums=('SKIP')
_gitname=skype-unofficial-client

pkgver () {
	cd $_gitname
	echo $(git rev-list --count HEAD).$(git describe --always | sed 's/-/./g')
}

package() {
	cd "$srcdir/$_gitname" # Git name and $pkgname differs

	# Creating missing folders
	mkdir -p "$pkgdir/usr/share/icons/hicolor/512x512/apps/"
	mkdir -p "$pkgdir/usr/share/applications"
	mkdir -p "$pkgdir/usr/bin"

	# Do the actual installation
	make PREFIX=$pkgdir $_platform
}