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
# Maintainer: Giorgio Gilestro <[email protected]>

pkgname="minus-uploader"
pkgver="1.7"
pkgrel=2
pkgdesc="Desktop app that allows you to drag-n-drop files into the taskbar and instantly upload to Minus"
url="https://minus.com/pages/tools"
license=('GPL')
arch=('i686' 'x86_64')
makedepends=('deb2targz' 'tar')
depends=('qt' 'qjson')

if [ "${CARCH}" == 'x86_64' ]; then
	
	_debarch='amd64'
	
elif [ "${CARCH}" == 'i686' ]; then
	
	_debarch='i386'
	
fi

_sourcefile="minus-desktop-tool_${_debarch}.deb"
source=("http://blog.minus.com/updates/${_sourcefile}")

[ "${CARCH}" == 'x86_64' ] && sha1sums=('e346e94a33ece207d7d7d7659557254afdaa2a41')
[ "${CARCH}" == 'i686' ] && sha1sums=('0194442015798943d55fb137028d85a8a722f434')

build() {
	
	true
	
}

package() {
	
	cd "${srcdir}/"
	deb2targz "${srcdir}/${_sourcefile}" > /dev/null
	
	cd "${pkgdir}/"
	tar -xzf "${srcdir}/data.tar.gz"
	
}