diff options
author | Christian Hesse | 2015-08-05 09:55:35 +0200 |
---|---|---|
committer | Christian Hesse | 2015-08-05 09:55:35 +0200 |
commit | 3b71b04b159eeb154b42b135207185283c90f7a5 (patch) | |
tree | 317c6255b1513b9f866a0a8b89adfa1f0a133067 | |
download | aur-3b71b04b159eeb154b42b135207185283c90f7a5.tar.gz |
initial import of tox-prpl-git 0.4.2.r11.g18cc684-1
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 55 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6c8f7a709264 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = tox-prpl-git + pkgdesc = Tox protocol plugin for pidgin / libpurple - git checkout + pkgver = 0.4.2.r11.g18cc684 + pkgrel = 1 + url = http://tox.dhs.org/ + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = libconfig + depends = libpurple + depends = tox-git + optdepends = pidgin: Use tox in pidgin messenger + provides = tox-prpl + conflicts = tox-prpl + options = !libtool + source = git://github.com/jin-eld/tox-prpl.git + sha256sums = SKIP + +pkgname = tox-prpl-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..acba79897477 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Christian Hesse <mail@eworm.de> +# Maintainer: naxuroqa <naxuroqa@gmail.com> + +pkgname=tox-prpl-git +pkgver=0.4.2.r11.g18cc684 +pkgrel=1 +pkgdesc='Tox protocol plugin for pidgin / libpurple - git checkout' +arch=('i686' 'x86_64') +url='http://tox.dhs.org/' +license=('GPL3') +depends=('libpurple' 'tox-git') +makedepends=('git' 'libconfig') +optdepends=('pidgin: Use tox in pidgin messenger') +options=('!libtool') +conflicts=('tox-prpl') +provides=('tox-prpl') +source=('git://github.com/jin-eld/tox-prpl.git') +sha256sums=('SKIP') + +pkgver() { + cd tox-prpl/ + + if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then + printf '%s.r%s.g%s' \ + "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \ + "$(git rev-list --count ${GITTAG}..)" \ + "$(git log -1 --format='%h')" + else + printf '0.r%s.g%s' \ + "$(git rev-list --count master)" \ + "$(git log -1 --format='%h')" + fi +} + +prepare() { + cd tox-prpl/ + + # make it compile again with new api + git cherry-pick -n e547fa94 +} + +build() { + cd tox-prpl/ + + autoreconf -i + ./configure --prefix=/usr + make +} + +package() { + cd tox-prpl/ + + make DESTDIR="$pkgdir" install +} + |