summaryrefslogtreecommitdiff
path: root/pcr/toxic-git
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/toxic-git')
-rw-r--r--pcr/toxic-git/PKGBUILD39
-rw-r--r--pcr/toxic-git/toxic-git.install12
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
+}
+