summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 624f1109e19fac1a54f9f2312319ed8de7e3c227 (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
# Maintainer: casualjoke

pkgname=porntime
pkgver=0.3.8
pkgrel=1
pkgdesc="Stream porn movies from torrents. Skip the downloads. Launch, click, watch."
arch=('x86_64' 'i686')
url="http://porntime.ws/"
license=('GPL3')
depends=('ttf-liberation' 'gconf' 'nss' 'libxtst' 'gtk2' 'alsa-lib')
optdepends=('net-tools: necessary for the new vpn feature')
provides=('porntime')
options=('!strip')
install="porntime.install"
md5sums=('3f67821d7bfc80bd8bb858bc92f5425b'
	'7b908d594b39d64fc5b7134213634135'
	'eda173affdfd1630ff6a0bfa566bc1de'
	'987c7e4be7f7dc7079200fe11c21a80b')

_platform=X64

if [ "$CARCH" = 'i686' ]; then
	_platform=X32
	md5sums[0]='7dc74d8e04b62925a54c14b29d8b1f3d'
fi

# In case of problems, a snapshot of the version linked to this PKGBUILD is provided
# at https://github.com/porntime/PornTime.2016.03.21.snapshot -- clone it, or just
# use the following sources:
#
# * https://github.com/porntime/PornTime.2016.03.21.snapshot/raw/master/PornTimeX64.tar.gz
# * https://github.com/porntime/PornTime.2016.03.21.snapshot/raw/master/PornTimeX32.tar.gz

source=("http://porntime.ws/PornTime${_platform}.tar.gz"
	"icon.png"
	"porntime.install"
	"porntime.desktop")

package() {

	cd "${srcdir}"

	install -dm755 "${pkgdir}/opt/${pkgname}/"
	install -dm755 "${pkgdir}/usr/bin"
	install -dm755 "${pkgdir}/usr/share"

	# Program
	echo "${pkgdir}/opt/${pkgname}/"
	install -Dm755 ${srcdir}/PornTime		"${pkgdir}/opt/${pkgname}/"
	install -Dm644 ${srcdir}/nw.pak		"${pkgdir}/opt/${pkgname}/"
	install -Dm644 ${srcdir}/libffmpegsumo.so	"${pkgdir}/opt/${pkgname}/"

	# Link to program
	ln -s "/opt/${pkgname}/PornTime" "${pkgdir}/usr/bin/porntime"

	# Desktop file
	install -Dm644 "${srcdir}/porntime.desktop" "${pkgdir}/usr/share/applications/porntime.desktop"

	# Icon
	install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/pixmaps/porntime.png"

}