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

pkgname=raditcast
pkgver=1.0.4+r3.c9aa3b3
pkgrel=1
pkgdesc="RaditCast es un proyecto de software libre para realizar streaming en Radit."
url="http://www.radit.org/net"
arch=('any')
license=('GPL v3')
install="$pkgname.install"
depends=('qt4' 'taglib' 'lame' 'vorbis-tools' 'aacplusenc' 'radit-essential')
makedepends=('git')
# provides=('')
# conflicts=('')
source=("$pkgname"::'git+https://github.com/jfperini/raditcast.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.4+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"

      	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: