void-packages/srcpkgs/libpurple-telegram/template

27 lines
749 B
Bash

# Template file for 'libpurple-telegram'
pkgname="libpurple-telegram"
version="1.2.5"
revision=2
build_style=gnu-configure
hostmakedepends="git git-perl pkg-config"
makedepends="libpurple-devel libglib-devel libwebp-devel libgcrypt-devel"
short_desc="A Telegram plugin for libpurple"
maintainer="John Regan <john@jrjrtech.com>"
license="GPL-2"
homepage="https://github.com/majn/telegram-purple"
wrksrc="telegram-purple-${version}"
# This package builds and runs some tools as
# part of its build process, making cross-compilation
# difficult.
# TODO fix cross-compilation
nocross="yes"
do_fetch() {
git clone "${homepage}.git" "${wrksrc}"
cd "${wrksrc}"
git checkout "v${version}"
git submodule sync
git submodule update --init --recursive
}