summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 898358b31a1a786b9ae48456b706cbf4a6c14e99 (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
# Maintainer: maz_1 <ohmygod19993 at gmail dot com>
pkgname=pointdownload-git
pkgver=r190.6d9f0c7
pkgrel=1
pkgdesc="A downloader supporting http, ftp, bt, magnet and thunder protocol"
arch=('x86_64' 'i686')
url="https://github.com/PointTeam/PointDownload"
license=('GPL3')
depends=('gcc-libs' 'qt5-base' 'qt5-webkit' 'qt5-declarative' 'qt5-multimedia' 'qt5-graphicaleffects')
makedepends=('git')
conflicts=('pointdownload')
provides=('pointdownload')
install=pointdownload.install
source=('git://github.com/PointTeam/PointDownload#branch=develop')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/PointDownload"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd $srcdir/PointDownload
	qmake-qt5
	make
}

package() {
	cd $srcdir/PointDownload
	INSTALL_ROOT=$pkgdir/ make install
	install -d $pkgdir/usr/share/applications
	install -Dm644 pointpopup.desktop $pkgdir/usr/share/applications
	install -Dm644 pointdownload.desktop $pkgdir/usr/share/applications

	cd $pkgdir

	install -d $pkgdir/usr/bin

	cat > $pkgdir/usr/bin/pointdownload <<"EOF"
#!/bin/sh
/opt/Point/PointDownload/PointDownload $@
EOF

	chmod +x $pkgdir/usr/bin/pointdownload
}