summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63da10bf5df0c069bc4bf8f99007185dcddf8ad4 (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
#Maintainer: Lothar_m <lothar_m at riseup dot net>

pkgname='ticker-git'
_gitname='ticker'
pkgver=1.9.r5.g51260c4
pkgrel=1
arch=('i686' 'x86_64')
url="http://joeyh.name/code/ticker/"
depends=('slang')
makedepends=('git')
license=('GPL')
pkgdesc="Ticker is a program that scrolls a message across the top or bottom line of your screen, in a manner similar to a stock ticker. Ticker supports communicating with programs that changes the text periodically."
provides=(ticker)
conflicts=(ticker)
source=("git://git.kitenet.net/ticker"
		)
md5sums=('SKIP'
		)

pkgver() {
	cd "$srcdir/$_gitname"
	# Use tag of the last commit, but removing the prefix
	git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
	cd "${_gitname}"
	cd "$srcdir/$_gitname"

	# building ....
	./configure --prefix=/usr
	make
}


package() {
	# install executable
	install -D -m755 "$srcdir/$_gitname/ticker" "$pkgdir/usr/bin/ticker"

	# install license
	install -D -m644 "$srcdir/$_gitname/GPL" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}