From dab58bee64279f66e24492fc6a6bf871274b5692 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 15 Jun 2015 18:32:26 -0300 Subject: toxic-git-r1527.409e4dd-1: updating version --- pcr/toxic-git/PKGBUILD | 39 +++++++++++++++++++++++---------------- pcr/toxic-git/toxic-git.install | 12 ++++++++++++ 2 files changed, 35 insertions(+), 16 deletions(-) create mode 100644 pcr/toxic-git/toxic-git.install (limited to 'pcr') diff --git a/pcr/toxic-git/PKGBUILD b/pcr/toxic-git/PKGBUILD index a9ba0e46e..c3ce125ce 100644 --- a/pcr/toxic-git/PKGBUILD +++ b/pcr/toxic-git/PKGBUILD @@ -1,33 +1,40 @@ # Maintainer: freaj -# Maintainer (Arch): Florian Hahn +# Maintainer (Arch): Håvard Pettersson +# Contributor (Arch): Florian Hahn +_pkgname=toxic pkgname=toxic-git -pkgdesc='CLI client for tox, a Skype replacement that respects your privacy' +pkgdesc='CLI Frontend in ncurses for Tox' license=('GPL3') -pkgver=0.5.2.r141.g6774289 +pkgver=r1527.409e4dd pkgrel=1 -depends=('tox-git' 'libconfig' 'freealut' 'libvpx' 'opus' 'libnotify') +depends=( + 'desktop-file-utils' + 'freealut' + 'libnotify' + 'tox-git' +) makedepends=('git') -conflicts=('toxic') -provides=('toxic') -arch=('i686' 'x86_64') +conflicts=($_pkgname) +provides=($_pkgname) +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') url=('http://tox.im') -source=('git+https://github.com/Tox/toxic.git') -md5sums=('SKIP') +source=("${pkgname}::git+https://github.com/Tox/toxic.git") +sha512sums=('SKIP') -_gitname=toxic +install="${pkgname}.install" pkgver() { - cd "${srcdir}/${_gitname}" - git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "${srcdir}/${_gitname}/build" - make PREFIX=/usr + cd "$pkgname" + make PREFIX=/usr } package() { - cd "${srcdir}/${_gitname}/build" - make PREFIX=/usr DESTDIR="${pkgdir}" install + cd "$pkgname" + make PREFIX=/usr DESTDIR="$pkgdir" install } diff --git a/pcr/toxic-git/toxic-git.install b/pcr/toxic-git/toxic-git.install new file mode 100644 index 000000000..87dc4754e --- /dev/null +++ b/pcr/toxic-git/toxic-git.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + -- cgit v1.2.3-54-g00ecf