[arch-commits] Commit in toxcore/trunk (PKGBUILD toxcore.conf toxcore.install)
Felix Yan
fyan at archlinux.org
Thu Oct 22 10:07:06 UTC 2015
Date: Thursday, October 22, 2015 @ 12:07:05
Author: fyan
Revision: 144685
upgpkg: toxcore 3523-1
Added:
toxcore/trunk/toxcore.conf
toxcore/trunk/toxcore.install
Modified:
toxcore/trunk/PKGBUILD
-----------------+
PKGBUILD | 27 +++++++++++++++++----------
toxcore.conf | 2 ++
toxcore.install | 3 +++
3 files changed, 22 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-10-22 10:07:04 UTC (rev 144684)
+++ PKGBUILD 2015-10-22 10:07:05 UTC (rev 144685)
@@ -6,22 +6,22 @@
# Contributor: Kevin MacMartin <prurigro at gmail dot com>
pkgname=toxcore
-pkgver=3513
-_commit=6120b0e0bb865ab196cdf717a4829a3f83ef1e7b
+pkgver=3523
+_commit=a25cc96b4f2aeaca169df834e39df796ac08f1bd
pkgrel=1
pkgdesc='Secure, configuration-free, P2P Skype replacement backend'
arch=('i686' 'x86_64')
url='https://tox.chat'
license=('GPL3')
-depends=('libconfig>=1.4'
- 'libsodium>=1.0'
- 'libvpx'
- 'opus')
+depends=('libconfig' 'libsodium' 'libvpx' 'opus')
makedepends=('git' 'check')
conflicts=("tox")
provides=("tox")
-source=("git+https://github.com/irungentoo/toxcore.git#commit=$_commit")
-sha512sums=('SKIP')
+install=$pkgname.install
+source=("git+https://github.com/irungentoo/toxcore.git#commit=$_commit"
+ 'toxcore.conf')
+sha512sums=('SKIP'
+ '71885e69f7b84955f6bdbf27b9e8196349cdd254b02b510433851bd218374d9c47aa7d3946dcc6a5cff6c8e705bc98d8a09de27039f60b8b088784cf8fa9d719')
pkgver() {
cd $pkgname
@@ -28,6 +28,11 @@
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
@@ -35,17 +40,19 @@
--prefix=/usr \
--enable-daemon \
--disable-ntox \
- --disable-tests
+ --enable-tests
make
}
check() {
cd $pkgname
- make check
+ 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"
}
Added: toxcore.conf
===================================================================
--- toxcore.conf (rev 0)
+++ toxcore.conf 2015-10-22 10:07:05 UTC (rev 144685)
@@ -0,0 +1,2 @@
+u tox-bootstrapd - "Tox bootstrapd"
+g tox-bootstrapd -
\ No newline at end of file
Added: toxcore.install
===================================================================
--- toxcore.install (rev 0)
+++ toxcore.install 2015-10-22 10:07:05 UTC (rev 144685)
@@ -0,0 +1,3 @@
+post_install() {
+ systemd-sysusers toxcore.conf
+}
\ No newline at end of file
More information about the arch-commits
mailing list