diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cf011c21b093 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Jiachen Yang <farseerfc@gmail.com> +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: HÃ¥vard Pettersson <mail@haavard.me> +# Contributor: naxuroqa <naxuroqa at gmail.com> +# Contributor: Boohbah <boohbah at gmail.com> +# Contributor: Kevin MacMartin <prurigro at gmail dot com> + +pkgname=toxcore-static1 +_pkgname=c-toxcore +epoch=1 +pkgver=0.1.11 +pkgrel=1 +pkgdesc='Secure, configuration-free, P2P Skype replacement backend' +arch=('x86_64') +url='https://tox.chat' +license=('GPL3') +depends=('libsodium' 'libvpx' 'opus') +makedepends=('check' 'cmake') +conflicts=() +provides=() +backup=() +install= +source=( + #"${_pkgname}-v${pkgver}.tar.gz::https://github.com/TokTok/${_pkgname}/archive/v${pkgver}.tar.gz" + "${_pkgname}-v${pkgver}.tar.gz::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-${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" + #"pr504.patch::https://github.com/TokTok/c-toxcore/commit/d4414ffa3acf9e7ab5158e6c7a69c115ccb1a308.patch" + ) +sha512sums=('4cc853c549c9ea9e2b48cf144b2a5f5d43e79c1103911beb0e8a827d24e40520907c2cef3c1eb05a37a7d0223b33dee352a3fc7a48e76a1a4947989b17f44e88' ) + +prepare() { + cd $_pkgname-$pkgver + # sed -i "s|/usr/local|/usr|" other/bootstrap_daemon/tox-bootstrapd.service + # sed -i "/Rpath/d;/RPATH/d" CMakeLists.txt +} + +build() { + cd $_pkgname-$pkgver + #autoreconf -if + #./configure \ + # --prefix=/usr \ + # --enable-daemon \ + # --disable-ntox \ + # --enable-tests + cmake -DCMAKE_INSTALL_PREFIX=/opt/toxcore-static1 \ + -DDHT_BOOTSTRAP=off \ + -DBOOTSTRAP_DAEMON=off \ + -DENABLE_STATIC=on \ + -DENABLE_SHARED=off \ + -DBUILD_NTOX=off + make +} + +check() { + cd $_pkgname-$pkgver + #make check + # make test ## test fail on i686 +} + +package() { + 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" + # install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.conf "$pkgdir/etc/tox-bootstrapd.conf" +} |