[arch-commits] Commit in toxcore/repos (8 files)
Felix Yan
fyan at archlinux.org
Mon Nov 2 03:06:43 UTC 2015
Date: Monday, November 2, 2015 @ 04:06:43
Author: fyan
Revision: 145508
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
toxcore/repos/community-staging-i686/
toxcore/repos/community-staging-i686/PKGBUILD
(from rev 145507, toxcore/trunk/PKGBUILD)
toxcore/repos/community-staging-i686/toxcore.conf
(from rev 145507, toxcore/trunk/toxcore.conf)
toxcore/repos/community-staging-i686/toxcore.install
(from rev 145507, toxcore/trunk/toxcore.install)
toxcore/repos/community-staging-x86_64/
toxcore/repos/community-staging-x86_64/PKGBUILD
(from rev 145507, toxcore/trunk/PKGBUILD)
toxcore/repos/community-staging-x86_64/toxcore.conf
(from rev 145507, toxcore/trunk/toxcore.conf)
toxcore/repos/community-staging-x86_64/toxcore.install
(from rev 145507, toxcore/trunk/toxcore.install)
------------------------------------------+
community-staging-i686/PKGBUILD | 59 +++++++++++++++++++++++++++++
community-staging-i686/toxcore.conf | 2
community-staging-i686/toxcore.install | 11 +++++
community-staging-x86_64/PKGBUILD | 59 +++++++++++++++++++++++++++++
community-staging-x86_64/toxcore.conf | 2
community-staging-x86_64/toxcore.install | 11 +++++
6 files changed, 144 insertions(+)
Copied: toxcore/repos/community-staging-i686/PKGBUILD (from rev 145507, toxcore/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-11-02 03:06:43 UTC (rev 145508)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Håvard Pettersson <mail at haavard.me>
+# Contributor: naxuroqa <naxuroqa at gmail.com>
+# Contributor: Boohbah <boohbah at gmail.com>
+# Contributor: Kevin MacMartin <prurigro at gmail dot com>
+
+pkgname=toxcore
+pkgver=3523
+_commit=a25cc96b4f2aeaca169df834e39df796ac08f1bd
+pkgrel=4
+pkgdesc='Secure, configuration-free, P2P Skype replacement backend'
+arch=('i686' 'x86_64')
+url='https://tox.chat'
+license=('GPL3')
+depends=('libconfig' 'libsodium' 'libvpx' 'opus')
+makedepends=('git' 'check')
+conflicts=("tox")
+provides=("tox")
+backup=('etc/tox-bootstrapd.conf')
+install=$pkgname.install
+source=("git+https://github.com/irungentoo/toxcore.git#commit=$_commit"
+ 'toxcore.conf')
+sha512sums=('SKIP'
+ '71885e69f7b84955f6bdbf27b9e8196349cdd254b02b510433851bd218374d9c47aa7d3946dcc6a5cff6c8e705bc98d8a09de27039f60b8b088784cf8fa9d719')
+
+pkgver() {
+ cd $pkgname
+ git rev-list --count HEAD
+}
+
+prepare() {
+ cd $pkgname
+ sed -i "s|/usr/local|/usr|" other/bootstrap_daemon/tox-bootstrapd.service
+}
+
+build() {
+ cd $pkgname
+ autoreconf -if
+ ./configure \
+ --prefix=/usr \
+ --enable-daemon \
+ --disable-ntox \
+ --enable-tests
+ make
+}
+
+check() {
+ cd $pkgname
+ make check || warning "Tests failed"
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/toxcore.conf" "$pkgdir/usr/lib/sysusers.d/toxcore.conf"
+ install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.service "$pkgdir/usr/lib/systemd/system/tox-bootstrapd.service"
+ install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.conf "$pkgdir/etc/tox-bootstrapd.conf"
+}
Copied: toxcore/repos/community-staging-i686/toxcore.conf (from rev 145507, toxcore/trunk/toxcore.conf)
===================================================================
--- community-staging-i686/toxcore.conf (rev 0)
+++ community-staging-i686/toxcore.conf 2015-11-02 03:06:43 UTC (rev 145508)
@@ -0,0 +1,2 @@
+u tox-bootstrapd - "Tox bootstrapd"
+g tox-bootstrapd -
\ No newline at end of file
Copied: toxcore/repos/community-staging-i686/toxcore.install (from rev 145507, toxcore/trunk/toxcore.install)
===================================================================
--- community-staging-i686/toxcore.install (rev 0)
+++ community-staging-i686/toxcore.install 2015-11-02 03:06:43 UTC (rev 145508)
@@ -0,0 +1,11 @@
+post_install() {
+ systemd-sysusers toxcore.conf
+ [[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd
+}
+
+post_upgrade() {
+ (( $(vercmp $2 '3523-3') < 0 )) && (
+ systemd-sysusers toxcore.conf
+ [[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd
+ ) || true
+}
Copied: toxcore/repos/community-staging-x86_64/PKGBUILD (from rev 145507, toxcore/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-11-02 03:06:43 UTC (rev 145508)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Håvard Pettersson <mail at haavard.me>
+# Contributor: naxuroqa <naxuroqa at gmail.com>
+# Contributor: Boohbah <boohbah at gmail.com>
+# Contributor: Kevin MacMartin <prurigro at gmail dot com>
+
+pkgname=toxcore
+pkgver=3523
+_commit=a25cc96b4f2aeaca169df834e39df796ac08f1bd
+pkgrel=4
+pkgdesc='Secure, configuration-free, P2P Skype replacement backend'
+arch=('i686' 'x86_64')
+url='https://tox.chat'
+license=('GPL3')
+depends=('libconfig' 'libsodium' 'libvpx' 'opus')
+makedepends=('git' 'check')
+conflicts=("tox")
+provides=("tox")
+backup=('etc/tox-bootstrapd.conf')
+install=$pkgname.install
+source=("git+https://github.com/irungentoo/toxcore.git#commit=$_commit"
+ 'toxcore.conf')
+sha512sums=('SKIP'
+ '71885e69f7b84955f6bdbf27b9e8196349cdd254b02b510433851bd218374d9c47aa7d3946dcc6a5cff6c8e705bc98d8a09de27039f60b8b088784cf8fa9d719')
+
+pkgver() {
+ cd $pkgname
+ git rev-list --count HEAD
+}
+
+prepare() {
+ cd $pkgname
+ sed -i "s|/usr/local|/usr|" other/bootstrap_daemon/tox-bootstrapd.service
+}
+
+build() {
+ cd $pkgname
+ autoreconf -if
+ ./configure \
+ --prefix=/usr \
+ --enable-daemon \
+ --disable-ntox \
+ --enable-tests
+ make
+}
+
+check() {
+ cd $pkgname
+ make check || warning "Tests failed"
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/toxcore.conf" "$pkgdir/usr/lib/sysusers.d/toxcore.conf"
+ install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.service "$pkgdir/usr/lib/systemd/system/tox-bootstrapd.service"
+ install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.conf "$pkgdir/etc/tox-bootstrapd.conf"
+}
Copied: toxcore/repos/community-staging-x86_64/toxcore.conf (from rev 145507, toxcore/trunk/toxcore.conf)
===================================================================
--- community-staging-x86_64/toxcore.conf (rev 0)
+++ community-staging-x86_64/toxcore.conf 2015-11-02 03:06:43 UTC (rev 145508)
@@ -0,0 +1,2 @@
+u tox-bootstrapd - "Tox bootstrapd"
+g tox-bootstrapd -
\ No newline at end of file
Copied: toxcore/repos/community-staging-x86_64/toxcore.install (from rev 145507, toxcore/trunk/toxcore.install)
===================================================================
--- community-staging-x86_64/toxcore.install (rev 0)
+++ community-staging-x86_64/toxcore.install 2015-11-02 03:06:43 UTC (rev 145508)
@@ -0,0 +1,11 @@
+post_install() {
+ systemd-sysusers toxcore.conf
+ [[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd
+}
+
+post_upgrade() {
+ (( $(vercmp $2 '3523-3') < 0 )) && (
+ systemd-sysusers toxcore.conf
+ [[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd
+ ) || true
+}
More information about the arch-commits
mailing list