update stable
This commit is contained in:
1 parent
cefc5a0789
commit
88aeabbd77
131 files changed
+3936
No files matched your search
@@ -0,0 +1,50 @@
|
||||
# Maintainer: Jonas Bögle <aur@iwr.sh>
|
||||
# Contributor: Jonathan Duck <duckbrain30@gmail.com>
|
||||
|
||||
pkgname=typora
|
||||
pkgver=1.12.4
|
||||
_pkgver_x86_64="$pkgver"
|
||||
_pkgver_aarch64="$pkgver"
|
||||
pkgrel=1
|
||||
pkgdesc="A minimal markdown editor and reader."
|
||||
arch=('x86_64' 'aarch64')
|
||||
license=('custom:"Copyright (c) 2015 Abner Lee All Rights Reserved."')
|
||||
url="https://typora.io/"
|
||||
depends=('gtk3' 'nss' 'alsa-lib')
|
||||
optdepends=(
|
||||
'noto-fonts-emoji: Or some other emoji font to see emojis'
|
||||
'pandoc: Import/export for extra file formats')
|
||||
source=("$pkgname.sh")
|
||||
_urlbase="https://download.typora.io/linux/typora_"
|
||||
source_x86_64=("${_urlbase}${_pkgver_x86_64}_amd64.deb")
|
||||
source_aarch64=("${_urlbase}${_pkgver_aarch64}_arm64.deb")
|
||||
sha512sums=('de9c883c63f3ea35bd551c8761e605f8e1a3468943e000abcbf94bb0c5cbb5f0f6c7fa4d49ab39c177f167e0e3d0b061c861bf828627b4a34f7f1589119c3d04')
|
||||
sha512sums_x86_64=('f2504c5ab4c80a1b4927b5498a7d8cb15509b1485111a886add75db35984daf49485db49e0fce9ec251be76b08ddf0dc7fd1150de4b7ffd284f67db60905c47a')
|
||||
sha512sums_aarch64=('1bc6808b574f0073856daf2471a592cbee374384a60c6cc8f11fed4a6a80eab7512343e86083f60b995c439b323dc1c82582576d611dcd07072e7cf6507aa7eb')
|
||||
|
||||
package() {
|
||||
# unpack archive
|
||||
if [[ "$CARCH" == "x86_64" ]]; then
|
||||
bsdtar -xf data.tar.zst -C "$pkgdir/"
|
||||
elif [[ "$CARCH" == "aarch64" ]]; then
|
||||
bsdtar -xf data.tar.xz -C "$pkgdir/"
|
||||
fi
|
||||
# remove lintian overrides
|
||||
rm -rf "$pkgdir/usr/share/lintian/"
|
||||
# replace bin link with custom launch script
|
||||
rm -rf "$pkgdir/usr/bin/$pkgname"
|
||||
install -m755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
|
||||
# move license to correct path
|
||||
install -Dm644 "$pkgdir/usr/share/doc/$pkgname/copyright" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
# delete previous copyright path
|
||||
rm "$pkgdir/usr/share/doc/$pkgname/copyright"
|
||||
# delete doc dir if empty
|
||||
rmdir --ignore-fail-on-non-empty "$pkgdir/usr/share/doc/$pkgname" "$pkgdir/usr/share/doc"
|
||||
# remove change log from application comment
|
||||
sed -i '/Change Log/d' "$pkgdir/usr/share/applications/typora.desktop"
|
||||
# fix permissions
|
||||
chmod 644 "$pkgdir/usr/share/applications/typora.desktop"
|
||||
chmod 644 "$pkgdir/usr/share/typora/resources/packages/node-spellchecker/vendor/hunspell_dictionaries/en_US.dic"
|
||||
chmod 644 "$pkgdir/usr/share/typora/resources/packages/node-spellchecker/vendor/hunspell_dictionaries/en_US.aff"
|
||||
find "$pkgdir" -type d -exec chmod 755 {} \;
|
||||
}
|
||||
Reference in new issue
Block a user