Last active
July 12, 2016 20:11
-
-
Save gaalcaras/a9e88e515238de0b47d5be56fa5fe5b8 to your computer and use it in GitHub Desktop.
Turtl 0.6.4 PKGBUILD for Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Manuel Mazzuola <origin.of@gmail.com> | |
# This particular update is brought to you by gaalcaras (https://keybase.io/gaalcaras) | |
pkgname=turtl | |
pkgver=0.6.4 | |
pkgrel=2 | |
pkgdesc="Turtl lets you take notes, bookmark websites, and store documents for sensitive projects." | |
arch=('i686' 'x86_64') | |
url="https://turtl.it" | |
depends=('gendesk') | |
license=('GPL3') | |
source=("turtl.png") | |
source_i686=("https://turtl.it/releases/desktop/$pkgname-linux32-$pkgver.tar.bz2") | |
source_x86_64=("https://turtl.it/releases/desktop/$pkgname-linux64-$pkgver.tar.bz2") | |
md5sums=('9e99b3fe83cb796343b7f1b21959f0d7') | |
md5sums_i686=('6fe7cecf3804e3280afbb641c392d0ce') | |
md5sums_x86_64=('f7758c9d54b2e62ea9009f126652e357') | |
[[ "$CARCH" = "i686" ]] && _pkg="turtl-linux32" | |
[[ "$CARCH" = "x86_64" ]] && _pkg="turtl-linux64" | |
package() { | |
cd "${_pkg}" | |
mkdir -p ${pkgdir}/opt/turtl | |
mkdir -p ${pkgdir}/usr/bin | |
./install.sh ${pkgdir}/opt/turtl > /dev/null | |
rm -f "$HOME/.local/share/applications/turtl.desktop" > /dev/null | |
gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --exec "/opt/turtl/turtl" -f > /dev/null | |
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" | |
install -Dm644 ../"$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" | |
ln -s "/opt/turtl/turtl" "${pkgdir}/usr/bin/turtl" | |
chmod +r -R "${pkgdir}/opt/turtl/" | |
chmod +rx "${pkgdir}/opt/turtl/turtl" "${pkgdir}/opt/turtl/turtl-bin" \ | |
"${pkgdir}/opt/turtl/chromedriver" \ | |
"${pkgdir}/opt/turtl/nwjc" ${pkgdir}/opt/turtl/nacl* \ | |
"${pkgdir}/opt/turtl/payload" "${pkgdir}/opt/turtl/lib" \ | |
"${pkgdir}/opt/turtl/locales" "${pkgdir}/opt/turtl/pnacl" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment