summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarwayer2017-06-26 14:15:43 +0300
committerfarwayer2017-06-26 14:15:43 +0300
commit8b941ae7afb2c1bde8d59784e13a89963b7400f8 (patch)
tree1c3e78740da981f80c21e01703f45c25ff13de4e
parent5b79640cfa5c8c38863f15b393bebc4e1960a378 (diff)
downloadaur-8b941ae7afb2c1bde8d59784e13a89963b7400f8.tar.gz
dev-1.4.0 branch; pkg fixes
-rw-r--r--.SRCINFO11
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD30
3 files changed, 20 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dbcedb28de2..f79a4a5edd0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,17 @@
-# Generated by mksrcinfo v8
-# Sun Jan 31 19:53:30 UTC 2016
pkgbase = telegram-purple-git
pkgdesc = Adds support for Telegram to Pidgin, Adium, Finch and other Libpurple based messengers.
- pkgver = v1.2.5.r0.gdf29bbc
+ pkgver = 1.4.0.ceec1a9
pkgrel = 1
url = https://github.com/majn/telegram-purple
arch = i686
arch = x86_64
license = GPL
makedepends = git
- depends = glib2
- depends = libgcrypt
depends = libpurple
- depends = zlib
depends = libwebp
- source = git+https://github.com/majn/telegram-purple
+ provides = telegram-purple
+ conflicts = telegram-purple
+ source = git+https://github.com/majn/telegram-purple#branch=dev-1.4.0
sha512sums = SKIP
pkgname = telegram-purple-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
index c01fcd5a7be..e4d7f12315c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,26 @@
-# Maintainer: Francisco Demartino <demartino.francisco@gmail.com>
+# Maintainer: farwayer <farwayer@gmail.com>
+# Submitter: Francisco Demartino <demartino.francisco@gmail.com>
+_ver=1.4.0
_pkgname=telegram-purple
pkgname=${_pkgname}-git
-pkgver=v1.2.5.r0.gdf29bbc
+pkgver=1.4.0.ceec1a9
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' 'libgcrypt' 'libpurple' 'zlib' 'libwebp')
-conflict=('telegram-purple')
+depends=('libpurple' 'libwebp')
+conflicts=('telegram-purple')
+provides=('telegram-purple')
-source=("git+https://github.com/majn/telegram-purple")
+source=("git+https://github.com/majn/telegram-purple#branch=dev-${_ver}")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
- git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+ printf "${_ver}.%s" "$(git rev-parse --short HEAD)"
}
prepare() {
@@ -27,21 +30,12 @@ prepare() {
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}
-
+ ./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${_pkgname}"
- make DESTDIR="$pkgdir/" install
+ make DESTDIR="${pkgdir}/" install
+ rmdir -p --ignore-fail-on-non-empty "${pkgdir}/etc/${_pkgname}"
}