diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-06-15 18:32:26 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-06-15 18:32:26 -0300 |
commit | dab58bee64279f66e24492fc6a6bf871274b5692 (patch) | |
tree | 45edea53380ce2facefb885c7db0da7e37143086 | |
parent | bcfd376b67482896f0b1a4dc17c2d1b8039f5c88 (diff) | |
download | abslibre-dab58bee64279f66e24492fc6a6bf871274b5692.tar.gz abslibre-dab58bee64279f66e24492fc6a6bf871274b5692.tar.bz2 abslibre-dab58bee64279f66e24492fc6a6bf871274b5692.zip |
toxic-git-r1527.409e4dd-1: updating version
-rw-r--r-- | pcr/toxic-git/PKGBUILD | 39 | ||||
-rw-r--r-- | pcr/toxic-git/toxic-git.install | 12 |
2 files changed, 35 insertions, 16 deletions
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 <freaj@riseup.net> -# Maintainer (Arch): Florian Hahn <flo@fhahn.com> +# Maintainer (Arch): Håvard Pettersson <mail@haavard.me> +# Contributor (Arch): Florian Hahn <flo@fhahn.com> +_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 +} + |