[arch-commits] Commit in toxcore/trunk (PKGBUILD)

Jiachen Yang farseerfc at archlinux.org
Sun Feb 12 14:21:53 UTC 2017


    Date: Sunday, February 12, 2017 @ 14:21:52
  Author: farseerfc
Revision: 212041

upgpkg: toxcore 1:0.1.6-1

toxcore switch to cmake build

Modified:
  toxcore/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++++++----------------
 1 file changed, 21 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-12 12:37:17 UTC (rev 212040)
+++ PKGBUILD	2017-02-12 14:21:52 UTC (rev 212041)
@@ -9,7 +9,7 @@
 pkgname=toxcore
 _pkgname=c-toxcore
 epoch=1
-pkgver=0.1.5
+pkgver=0.1.6
 pkgrel=1
 pkgdesc='Secure, configuration-free, P2P Skype replacement backend'
 arch=('i686' 'x86_64')
@@ -16,16 +16,17 @@
 url='https://tox.chat'
 license=('GPL3')
 depends=('systemd' 'libconfig' 'libsodium' 'libvpx' 'opus')
-makedepends=('check')
+makedepends=('check' 'cmake')
 conflicts=("tox")
 provides=("tox")
 backup=('etc/tox-bootstrapd.conf')
 install=$pkgname.install
 source=(
-	"${_pkgname}-v${pkgver}.tar.gz::https://github.com/TokTok/${_pkgname}/archive/v${pkgver}.tar.gz"
-	"${_pkgname}-v${pkgver}.tar.gz.asc::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.robinlinden.tar.gz.asc"
+	#"${_pkgname}-v${pkgver}.tar.gz::https://github.com/TokTok/${_pkgname}/archive/v${pkgver}.tar.gz"
+	"${_pkgname}-v${pkgver}.tar.lz::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}.tar.lz"
+	"${_pkgname}-v${pkgver}.tar.lz.asc::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}.tar.lz.asc"
         'toxcore.conf')
-sha512sums=('3dda0e1f9d4232790899a68675db072f13f2e9142b8c45f6051780901dee1e9c15c803fb9d98745e88342d14d828f9be9974eeb61ee2c767b0d8cec3d55fa03f'
+sha512sums=('57ed7cee2c621c57e24f5ab36d68d99414d9820cdb3e8b7c4390818222f9d885f352f9cf76c8eb522c238bebc7d420bcf3cdd5f6ab65b9801aadbd225765166c'
             'SKIP'
             'aa1dcfbdf9b613f5d89e238ff5d01e0ea150ad3162792acb806f51ce07fd9ade1270b310b1285a828dcdf578549b95a89fd9bd198fb205c83f5a5be2c969ea63')
 validpgpkeys=("15D3B9A6B3951DF9854FCA93E786548AE0A0B56B"  # RobinLindén<mail+gitlab at robinlinden.eu>
@@ -39,28 +40,32 @@
 )
 
 prepare() {
-  cd $_pkgname-$pkgver
+  #cd $_pkgname-$pkgver
   sed -i "s|/usr/local|/usr|" other/bootstrap_daemon/tox-bootstrapd.service
 }
 
 build() {
-  cd $_pkgname-$pkgver
-  autoreconf -if
-  ./configure \
-    --prefix=/usr \
-    --enable-daemon \
-    --disable-ntox \
-    --enable-tests
+  #cd $_pkgname-$pkgver
+  # autoreconf -if
+  # ./configure \
+  #   --prefix=/usr \
+  #   --enable-daemon \
+  #   --disable-ntox \
+  #   --enable-tests
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DDHT_BOOTSTRAP=on \
+        -DBOOTSTRAP_DAEMON=on \
+        -DBUILD_NTOX=off
   make
 }
 
 check() {
-  cd $_pkgname-$pkgver
-  make check
+  #cd $_pkgname-$pkgver
+  make test
 }
 
 package() {
-  cd $_pkgname-$pkgver
+  #cd $_pkgname-$pkgver
   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"



More information about the arch-commits mailing list