blob: 0e13baf9a39df56270e02edbfafdcc8b0726a953 (
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
|
# Maintainer: Christian Hesse <mail@eworm.de>
# Maintainer: naxuroqa <naxuroqa@gmail.com>
pkgname=tox-prpl-git
pkgver=0.4.2.r41.g5179021
pkgrel=1
pkgdesc='Tox protocol plugin for pidgin / libpurple - git checkout'
arch=('i686' 'x86_64')
url='http://tox.dhs.org/'
license=('GPL3')
depends=('libpurple' 'toxcore')
makedepends=('git' 'libconfig')
optdepends=('pidgin: Use tox in pidgin messenger')
options=('!libtool')
conflicts=('tox-prpl')
provides=('tox-prpl')
source=('git://github.com/jin-eld/tox-prpl.git')
sha256sums=('SKIP')
pkgver() {
cd tox-prpl/
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
printf '%s.r%s.g%s' \
"$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
"$(git rev-list --count ${GITTAG}..)" \
"$(git log -1 --format='%h')"
else
printf '0.r%s.g%s' \
"$(git rev-list --count master)" \
"$(git log -1 --format='%h')"
fi
}
build() {
cd tox-prpl/
autoreconf -i
./configure --prefix=/usr
make
}
package() {
cd tox-prpl/
make DESTDIR="$pkgdir" install
}
|