summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/utox-git/PKGBUILD50
-rw-r--r--pcr/utox-git/utox-git.install15
2 files changed, 43 insertions, 22 deletions
diff --git a/pcr/utox-git/PKGBUILD b/pcr/utox-git/PKGBUILD
index f166c48aa..30ad2b38f 100644
--- a/pcr/utox-git/PKGBUILD
+++ b/pcr/utox-git/PKGBUILD
@@ -1,39 +1,45 @@
# Maintainer (Arch): Madotsuki <madotsuki@cock.li>
-# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor (Arch): Håvard Pettersson <mail@haavard.me> (Previous maintainer while I was lollygagging.)
-pkgname=utox-git
-pkgver=20150107
+_pkgname=utox
+pkgname="${_pkgname}-git"
+pkgver=r1158.g8ed4616
pkgrel=1
-pkgdesc="Lightweight Tox client (git version)"
+
+pkgdesc='Lightweight Tox client'
arch=('i686' 'x86_64')
-url="https://github.com/notsecure/uTox"
+url='https://github.com/notsecure/uTox'
license=('GPL3')
-depends=('freetype2' 'v4l-utils' 'libvpx' 'openal' 'tox-git' 'dbus-c++' 'libx11' 'libxrender' 'libxext' 'fontconfig' 'freetype2')
-makedepends=('git' 'make')
-source=(${pkgname%-git}::git+https://github.com/notsecure/uTox)
-sha256sums=('SKIP')
-provides=('utox')
-conflicts=('utox')
+
+depends=('tox-git' 'libxrender' 'openal' 'v4l-utils' 'libdbus' 'libxext'
+ 'fontconfig' 'desktop-file-utils' 'hicolor-icon-theme' 'filter_audio-git')
+makedepends=('git')
+optdepends=('gtk2: GTK file picker')
+
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+
+source=("${pkgname}::git+https://github.com/notsecure/uTox")
+md5sums=('SKIP')
+
+install="${pkgname}.install"
pkgver()
{
- cd ${pkgname%-git}
-
- git log -1 --format="%cd" --date=short | sed "s|-||g"
+ cd "${srcdir}/${pkgname}"
+ printf "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build()
{
- cd ${pkgname%-git}
-
- msg 'Building...'
- make
+ cd "${srcdir}/${pkgname}"
+ make
}
package()
{
- cd ${pkgname%-git}
-
- msg 'Installing...'
- make PREFIX="/usr" DESTDIR="$pkgdir" install
+ cd "${srcdir}/${pkgname}"
+ make PREFIX=/usr DESTDIR="${pkgdir}" install
}
+
+
diff --git a/pcr/utox-git/utox-git.install b/pcr/utox-git/utox-git.install
new file mode 100644
index 000000000..4361e58e9
--- /dev/null
+++ b/pcr/utox-git/utox-git.install
@@ -0,0 +1,15 @@
+post_install()
+{
+ xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+ update-desktop-database -q
+}
+
+post_upgrade()
+{
+ post_install $1
+}
+
+post_remove()
+{
+ post_install $1
+}