blob: 6408b73074bcc53833b7353fdd3fca5f3cb11c34 (
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
|
# Maintainer: Guillaume Hayot <ghayot@postblue.info>
pkgname=libpurple-carbons-git
_pkgname=carbons
pkgver=r27.8ab2fe5
pkgrel=3
pkgdesc='Experimental XEP-0280: Message Carbons plugin for libpurple (Pidgin, Finch, etc.)'
arch=('i686' 'x86_64')
url="https://github.com/gkdr/carbons"
license=('GPL')
depends=('libpurple' 'glib2' 'libxml2')
makedepends=('git')
conflicts=('libpurple-carbons')
source=("$_pkgname::git+https://github.com/gkdr/carbons.git")
sha256sums=('SKIP')
pkgver () {
cd "$srcdir/$_pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/$_pkgname"
msg2 "Getting submodules"
git submodule update --init --recursive
}
build() {
cd "$srcdir/$_pkgname"
make
}
package() {
install -Dm755 "$srcdir/$_pkgname/build/$_pkgname.so" "$pkgdir/usr/lib/purple-2/$_pkgname.so"
}
|