Skip to content

Instantly share code, notes, and snippets.

@Gabrielgtx
Last active November 6, 2021 17:54
Show Gist options
  • Save Gabrielgtx/0d4d2c651ab1d86c6450c1b355404ad7 to your computer and use it in GitHub Desktop.
Save Gabrielgtx/0d4d2c651ab1d86c6450c1b355404ad7 to your computer and use it in GitHub Desktop.
Unofficial release of Duolingo for Linux / Learn languages by playing a game. It's 100% free, fun, and scientifically proven to work. / https://www.duolingo.com/

Duolingo

Unofficial release of Duolingo for Linux

Learn languages by playing a game. It's 100% free, fun, and scientifically proven to work. preview

URL: https://www.duolingo.com/

Install

kcp -i duolingo

homework

[Desktop Entry]
Name=Duolingo
Exec=/opt/duolingo/duolingo
Icon=duolingo
Terminal=false
Type=Application
Categories=Game;Education;Languages;
StartupNotify=true
post_install() {
update-desktop-database -q
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
pkgname=duolingo
pkgver=0.3.1
pkgrel=1
pkgdesc="Unofficial release of Duolingo for Linux / Learn languages by playing a game. It's 100% free, fun, and scientifically proven to work."
url="https://www.duolingo.com/"
arch=('x86_64')
license=('custom')
install=duolingo.install
source=("https://github.com/mikethedj4/duolingo-linux/raw/master/${pkgname}-linux.tar.gz"
"duolingo.desktop")
md5sums=('b69a84ad08080a851c517496ddd4e785'
'81038bee242ba1175f0a57b7dd585b8f')
package() {
cd "$srcdir/Duolingo/resources/default_app/icons"
for y in 16 32 64 128; do
install -Dm644 ${y}.png "$pkgdir"/usr/share/icons/hicolor/${y}x${y}/apps/duolingo.png
install -Dm644 logo.svg "$pkgdir"/usr/share/pixmaps/duolingo.svg
done
rm -r ../icons && cd "$srcdir"/Duolingo/
install -Dm755 electron "$pkgdir"/opt/duolingo/duolingo
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/duolingo/LICENSE
install -Dm644 "$srcdir"/Duolingo.desktop "$pkgdir"/usr/share/applications/duolingo.desktop
cp -r {locales,resources,*.*,version} "$pkgdir"/opt/duolingo/
}
@gabrielmoura
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment