blob: 7c5754a53912e9f040b44f63c12bc477fbe643dd (
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
|
# Contributor: eskimod
# Maintainer: Sýlvan Heuser <sylvan.heuser@gmx.net>
pkgname=libpurple-lurch-git
_pkgname=lurch
pkgver=r117.3f74880
pkgrel=1
pkgdesc='Plugin for libpurple (Pidgin, Adium, etc) implementing OMEMO (using axolotl)'
arch=('i686' 'x86_64')
url="https://github.com/gkdr/lurch"
license=('GPL')
depends=('libpurple' 'mxml' 'libxml2' 'sqlite' 'libgcrypt')
makedepends=('git' 'cmake')
optdepends=('libpurple-carbons-git: message carbons support')
source=("$_pkgname::git+https://github.com/gkdr/lurch.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"
# .gitmodules specifies relative paths that don't resolve correctly on a local clone
git config --file=.gitmodules submodule."lib/axc".url "https://github.com/gkdr/axc"
git config --file=.gitmodules submodule."lib/libomemo".url "https://github.com/gkdr/libomemo"
git submodule update --init --recursive
}
build() {
cd "$srcdir/$_pkgname"
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|