summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6725c1a6b423e619c724a37b4f87876a330e0480 (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
# Maintainer:  jfperini <@jfperini>
# Contributor: jfperini <@jfperini>

pkgname=meteo
pkgver=1.0.2+r2.ea7996c
pkgrel=1
pkgdesc="Meteo es un proyecto de software libre que recopila datos meteorológicos para Radit."
url="http://www.radit.org/net"
arch=('any')
license=('GPL v3')
install=meteo.install
depends=('qt4')
makedepends=('git')
# provides=('')
# conflicts=('')
source=("$pkgname"::'git+https://github.com/jfperini/meteo.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')

pkgver() {

	cd "$srcdir/$pkgname"
      
	# Use the tag of the last commit
	printf "1.0.2+r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}


build()
{

      	cd "$srcdir/$pkgname/src"
      
	msg2 "  -> Build program..."
	qmake-qt4 $pkgname.pro
      	make
      
}


package() {

      	cd "$srcdir/$pkgname"
      
	rm -rf {.git,.gitignore,CONTRIBUTORS,COPYING,CREDITS,LICENSE.txt,README.md}

    	msg2 "  -> Installing program..."
      	install -d $pkgdir/{opt/radit,usr/bin}
      	cp -a "./LinuxDesktop/$pkgname" "$pkgdir/opt/radit"
      	cp -u "./launcher/$pkgname" "$pkgdir/usr/bin"
      
      	chmod -R 775 $pkgdir/opt/radit/$pkgname

      	install -Dm644 "./launcher/$pkgname.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
      	install -Dm644 "./launcher/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"

      	# chmod -R ugo+rX "$pkgdir/opt"
      
}

# vim: ts=2 sw=2 et: