mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-03 04:27:15 +08:00
70 lines
2.0 KiB
Bash
70 lines
2.0 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=skype
|
|
pkgver=2.1.0.81
|
|
pkgrel=2
|
|
arch=(i686 x86_64)
|
|
pkgdesc="P2P software for high-quality voice communication"
|
|
url="http://www.skype.com/"
|
|
license=('custom')
|
|
options=('!strip')
|
|
install=skype.install
|
|
depends=(xdg-utils hicolor-icon-theme)
|
|
conflicts=('skype-staticqt')
|
|
|
|
if [[ $CARCH == i686 ]]; then
|
|
depends+=(qt alsa-lib libxss libxv)
|
|
optdepends=('v4l-utils: webcam support'
|
|
'libcanberra: XDG sound support'
|
|
'pulseaudio: PulseAudio support')
|
|
else
|
|
depends+=(lib32-{qt,alsa-lib,libxss,libxv,v4l-utils})
|
|
optdepends=('lib32-libcanberra: XDG sound support'
|
|
'lib32-libpulse: PulseAudio support')
|
|
conflicts+=(bin32-skype bin32-skype-staticqt)
|
|
provides=("bin32-skype=$pkgver")
|
|
replaces=(bin32-skype)
|
|
fi
|
|
|
|
source=(http://download.skype.com/linux/$pkgname-$pkgver.tar.bz2 PERMISSION)
|
|
md5sums=('5411dcf89e33f53df5fbe5958bbaef54'
|
|
'26e1772379d4d4df9471b6ed660a6d97')
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
# Executable
|
|
install -D skype "$pkgdir/usr/bin/skype"
|
|
|
|
# Data
|
|
mkdir -p "$pkgdir"/usr/share/skype/{avatars,lang,sounds}
|
|
install -m 644 avatars/* "$pkgdir/usr/share/skype/avatars"
|
|
install -m 644 lang/* "$pkgdir/usr/share/skype/lang"
|
|
install -m 644 sounds/* "$pkgdir/usr/share/skype/sounds"
|
|
|
|
# DBus Service
|
|
install -Dm 644 skype.conf \
|
|
"$pkgdir/etc/dbus-1/system.d/skype.conf"
|
|
|
|
# Icons
|
|
for _i in 16 32 48; do
|
|
install -Dm 644 icons/SkypeBlue_${_i}x${_i}.png \
|
|
"$pkgdir/usr/share/icons/hicolor/${_i}x${_i}/skype.png"
|
|
done
|
|
install -Dm 644 icons/SkypeBlue_48x48.png \
|
|
"$pkgdir/usr/share/pixmaps/skype.png"
|
|
|
|
# Desktop file
|
|
install -Dm 644 skype.desktop \
|
|
"$pkgdir/usr/share/applications/skype.desktop"
|
|
|
|
# License
|
|
install -Dm 644 LICENSE \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
install -Dm 644 "$srcdir/PERMISSION" \
|
|
"$pkgdir/usr/share/licenses/$pkgname/PERMISSION"
|
|
}
|