#Packager: Richard Lapointe #Former Packager(s): Name #Anything commented out is optional and can be deleted. pkgname=discord-voip _repopkgname=discord _softpkgname=Discord pkgver=0.0.4 pkgrel=1rl arch=x86_64 source=(https://dl.discordapp.net/apps/linux/$pkgver/$_repopkgname-$pkgver.tar.gz) sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver/ #docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://discordapp.com/ #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') #doinst() { # #} slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "discord-viop (All-in-one voice and text chat for gamers)" "All-in-one voice and text chat for gamers that's free, secure, and" "works on both your desktop and phone. Stop paying for TeamSpeak" "servers and hassling with Skype. Simplify your life." "" "Discord is only available as a 64bit program. 32bit is unsupported." ) build() { # Install the main files. install -d "$startdir/pkg/opt/${_softpkgname}" cp -a "$startdir/src/Discord/." "$startdir/pkg/opt/${_softpkgname}" # Exec bit chmod 755 "$startdir/pkg/opt/${_softpkgname}/Discord" # Desktop Entry cd $startdir/src/$_softpkgname/ sed -i -e 's/\/usr\/share\/discord\/Discord/\/opt\/Discord\/Discord/g' discord.desktop install -d "$startdir/pkg/usr/share/applications" install "$startdir/src/$_softpkgname/discord.desktop" "$startdir/pkg/usr/share/applications" #let's deal with the icons cd $startdir/src/$_softpkgname/discord.png ICONSIZES="48 32 16" for i in $ICONSIZES; do convert -resize $i\x$i discord.png discord_${i}.png mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$_softpkgname/discord_${i}.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/discord.png; done; }