Package Details: marktext-tkaixiang-bin 0.18.2-1

Git Clone URL: https://aur.archlinux.org/marktext-tkaixiang-bin.git (read-only, click to copy)
Package Base: marktext-tkaixiang-bin
Description: MarkText (modernized fork by Tkaixiang) – prebuilt binary
Upstream URL: https://github.com/Tkaixiang/marktext
Keywords: markdown
Licenses: MIT
Conflicts: marktext
Provides: marktext
Submitter: samsim
Maintainer: samsim (tony_yyc)
Last Packager: samsim
Votes: 1
Popularity: 0.51
First Submitted: 2025-08-17 14:28 (UTC)
Last Updated: 2025-08-17 14:28 (UTC)

Latest Comments

coinanole commented on 2026-01-09 17:22 (UTC)

v0.18.5 has a tarball release again, doesn't require PKGBUILD changes

tony_yyc commented on 2025-10-26 08:05 (UTC) (edited on 2025-10-26 08:08 (UTC) by tony_yyc)

Hello,

The upstream marktext-tkaixiang project has released version v0.18.4.

I noticed that the v0.18.4 release only provides a .deb package for Linux, and the internal directory structure seems to have moved the binaries to /opt/MarkText.

I have prepared an updated PKGBUILD that handles the version bump and the necessary switch to the .deb source file, using bsdtar to correctly extract the contents to the /opt/MarkText path.

Please find the updated PKGBUILD below for your review. Let me know if you have any questions!

Thank you for maintaining this package.

# Maintainer: Sam Simons <mail@samsimons.nl>
_pkgname=marktext-tkaixiang
pkgname=${_pkgname}-bin
pkgver=0.18.4
pkgrel=1
pkgdesc="MarkText (modernized fork by Tkaixiang) – prebuilt binary"
arch=('x86_64')
url="https://github.com/Tkaixiang/marktext"
license=('MIT')
depends=(
  'glibc'        # libc.so.6, ld-linux-x86-64.so.2
  'gtk3'         # libgtk-3.so.0 + big GTK/GLib/Pango/Cairo stack
  'nss'          # libnss3.so, libnssutil3.so, libsmime3.so, libnspr4.so
  'alsa-lib'     # libasound.so.2 (audio)
  'libxss'       # libXss.so.1 (idle/notifications)
  'cups'         # libcups.so.2 (printing support — linked)
  'libxkbcommon' # libxkbcommon.so.0 (keyboard)
  'libxkbfile'    # libxkbfile.so 
  'mesa'         # libgbm.so.1 (GBM), pulls libdrm
  'hicolor-icon-theme' # icon cache integration
)

provides=('marktext')
conflicts=('marktext')
options=('!strip')
source_x86_64=("${url}/releases/download/v${pkgver}/marktext-linux-${pkgver}.deb")
source=("marktext.desktop"
        "${url}/raw/trunk/static/logo-small.png")
sha256sums=('7f5f4c62523895081883fc4ba2c14790620d88178d6c97d52e9cf0850ea6620e'
            '53e9fb3cfe5efb2ca0e77ad7dcbf56835373ae797d36a87479f207ed8a8d90d4')
sha256sums_x86_64=('03499a4077f060f6b84321f079c56c3e72e44099de7df5da2cfd144c10dac750')

package() {
  install -dm755 "${pkgdir}/opt/marktext" \
                 "${pkgdir}/usr/bin" \
                 "${pkgdir}/usr/share/applications" \
                 "${pkgdir}/usr/share/icons/hicolor/256x256/apps" \
                 "${pkgdir}/usr/share/licenses/${pkgname}"

  bsdtar -O -xf "${srcdir}/marktext-linux-${pkgver}.deb" 'data.tar*' | \
  bsdtar -xf - -C "${pkgdir}"

  ln -s /opt/marktext/marktext "${pkgdir}/usr/bin/marktext"

  install -m644 "${srcdir}/marktext.desktop" \
          "${pkgdir}/usr/share/applications/marktext.desktop"
  install -m644 "${srcdir}/logo-small.png" \
          "${pkgdir}/usr/share/icons/hicolor/256x256/apps/marktext.png"

  install -m644 "${pkgdir}/opt/marktext/LICENSE"* \
          "${pkgdir}/usr/share/licenses/${pkgname}/" 2>/dev/null || true
}