mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
49 lines
1.7 KiB
Bash
49 lines
1.7 KiB
Bash
pkgname=toxcore
|
|
_pkgname=c-toxcore
|
|
pkgver=0.2.7
|
|
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=('bb5248f4fb84146c6c7c3dd086211314528ad95b3e71e3c05ea2e4e7c9f3c45552bc0bd8d47af127ac5f26a39b6abf79c32cd76a0e0c70496419fa5b549580cc'
|
|
'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
|
|
}
|