From e95773ad2a4bfc11aec079e95729193c61af55d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Sat, 7 Feb 2015 02:16:34 -0200 Subject: utox-git-r1158.g8ed4616-1: updating version --- pcr/utox-git/PKGBUILD | 50 ++++++++++++++++++++++++------------------- pcr/utox-git/utox-git.install | 15 +++++++++++++ 2 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 pcr/utox-git/utox-git.install (limited to 'pcr') 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 -# Maintainer: André Silva +# Contributor (Arch): Håvard Pettersson (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 +} -- cgit v1.2.3-2-g168b