diff options
author | Francisco Demartino | 2015-06-29 19:02:16 -0300 |
---|---|---|
committer | Francisco Demartino | 2015-06-29 19:03:28 -0300 |
commit | 2467c9b6f6395c887fbb6e4487abf57950a2d9b2 (patch) | |
tree | 19b5ed85afa7c6f44c891c12d8b2b6c3f352d89c | |
download | aur-2467c9b6f6395c887fbb6e4487abf57950a2d9b2.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0f8f9b91c57e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = telegram-purple-git + pkgdesc = Adds support for Telegram to Pidgin, Adium, Finch and other Libpurple based messengers. + pkgver = v1.1.0.beta2.r0.g006890a + pkgrel = 1 + url = https://github.com/majn/telegram-purple + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + depends = glib2 + depends = openssl + depends = libpurple + depends = zlib + depends = libwebp + source = git+https://github.com/majn/telegram-purple + sha512sums = SKIP + +pkgname = telegram-purple-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..353b38565149 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Francisco Demartino <demartino.francisco@gmail.com> + +_pkgname=telegram-purple +pkgname=${_pkgname}-git +pkgver=v1.1.0.beta2.r0.g006890a +pkgrel=1 +pkgdesc="Adds support for Telegram to Pidgin, Adium, Finch and other Libpurple based messengers." +arch=('i686' 'x86_64') +url="https://github.com/majn/telegram-purple" +license=("GPL") +makedepends=("git") +depends=('glib2' 'openssl' 'libpurple' 'zlib' 'libwebp') + +source=("git+https://github.com/majn/telegram-purple") +sha512sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + cd "${srcdir}/${_pkgname}" + git submodule update --init --recursive +} + +build() { + cd "${srcdir}/${_pkgname}" + + ./configure + + # keep this part synced with the Makefile + PLUGIN_DIR_PURPLE=$(pkg-config --variable=plugindir purple) + DATA_ROOT_DIR_PURPLE=$(pkg-config --variable=datarootdir purple) + PIDGIN_PROTOCOLS_PIXMAPS_DIR=${DESTDIR}${DATA_ROOT_DIR_PURPLE}/pixmaps/pidgin/protocols + mkdir -p ${DESTDIR}${PLUGIN_DIR_PURPLE} + mkdir -p ${PIDGIN_PROTOCOLS_PIXMAPS_DIR} + mkdir -p ${PIDGIN_PROTOCOLS_PIXMAPS_DIR}/{16,22,48} + + make +} + +package() { + cd "${srcdir}/${_pkgname}" + make DESTDIR="$pkgdir/" install +} |