desktop/toxcore/PKGBUILD

49 lines
1.7 KiB
Bash

pkgname=toxcore
_pkgname=c-toxcore
pkgver=0.2.4
pkgrel=1
pkgdesc="A FOSS instant messaging application aimed to replace Skype"
arch=('x86_64')
url="https://tox.chat/"
screenshot='http://siliconangle.com/files/2013/08/tox-im-logo.jpg'
license=('GPL3')
depends=('systemd' 'libconfig' 'libsodium' 'libvpx' 'opus')
makedepends=('check' 'cmake')
conflicts=('tox-git')
provides=('tox' 'toxcore')
install='toxcore.install'
source=(#"${_pkgname}-v${pkgver}.tar.gz::https://github.com/TokTok/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz"
"https://github.com/TokTok/$_pkgname/archive/v$pkgver.tar.gz"
'toxcore.conf')
sha512sums=('322a5970087cd149f5c037ad4463eb34edfcc074dd76f7d63b117af93ee813922855380afbe0cda4cf39fd16f177eedee18a8e453ed14915321f9cec8ae7679d'
'aa1dcfbdf9b613f5d89e238ff5d01e0ea150ad3162792acb806f51ce07fd9ade1270b310b1285a828dcdf578549b95a89fd9bd198fb205c83f5a5be2c969ea63')
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
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DDHT_BOOTSTRAP=on \
-DBOOTSTRAP_DAEMON=on \
-DBUILD_NTOX=off
make
}
#check() {
# cd $_pkgname-$pkgver
# make test
#}
package() {
cd $_pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 ../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
}