summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2e02abd281135226eadbc3e0e7fd7aeeaf7b5ba (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
# Maintainer: mediaget

pkgname=mediaget
fixver=4317
pkgver=3.200.${fixver}
pkgrel=1
pkgdesc="torrent player torrent-client"
arch=('i386' 'x86_64')
url="https://mediaget.com/"
license=('custom')
depends=('libidn11' 'gcc-libs' 'vlc')
makedepends=('imagemagick') 
source=("${pkgname}.tar.xz::https://mediaget.com/installer/mediaget_linux_${fixver}.tar.xz" "mediaget.desktop" "mediaget")
md5sums=('165e48b9e87e3c25462c60376cfa1937'
         'a0d5c36d4c355317fba5eed5ad55880c'
         '70f419b3a15bee508f8bd1beb3b85342')

  package() {
	cd "$srcdir"
          mkdir -p "$pkgdir"/opt
        cp -r mediaget_linux_${fixver} $pkgdir/opt/mediaget
       
	for res in 256 128 64 48 32 24 22 16; do
		convert "${pkgdir}/opt/${pkgname}/resources/${pkgname}.png" \
			-resize ${res}x${res} \
			"${pkgdir}/opt/${pkgname}/resources/${pkgname}_${res}.png"
	done
	for res in 16 22 24 32 48 64 128 256; do
		install -Dm644 "${pkgdir}/opt/${pkgname}/resources/${pkgname}_${res}.png" \
			"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${pkgname}.png"
	done
       install -Dm755 mediaget.desktop "$pkgdir/usr/share/applications/mediaget.desktop"
       mkdir "$pkgdir"/usr/bin
       install -Dm755 mediaget "$pkgdir/usr/bin/mediaget"
}