diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 52 | ||||
-rw-r--r-- | p1.patch | 36 |
4 files changed, 72 insertions, 36 deletions
@@ -1,15 +1,15 @@ pkgbase = mytetra pkgdesc = Personal manager for data memorization and structuring notes - pkgver = 1.43.27 - pkgrel = 1 + pkgver = 1.44.160 + pkgrel = 2 url = https://github.com/xintrea/mytetra_dev arch = x86_64 license = GPL3 - noextract = mytetra.desktop - source = https://webhamster.ru/db/data/articles/105/mytetra_1_43_27_lin_64.tar.gz - source = https://gist.githubusercontent.com/cyberxndr/498db38606e53a56efb32d79a2c73b4a/raw/82f2a036d300058f6253732609654e73a8b8e020/mytetra.desktop - md5sums = b6282f94d7271ee1a994c9ce17bb9085 - md5sums = 52f0675d8fa88fa9a388e0f4a54fa7e6 + depends = hicolor-icon-theme + depends = qt5-base + source = https://github.com/xintrea/mytetra_dev/archive/refs/tags/v.1.44.160.tar.gz + source = p1.patch + sha256sums = 301c297bc359197e07afa2302841a0f7e24c5589ea0b0f5e13b9c2ff6806a562 + sha256sums = 8cb3ba6defeb12da6a7cada7e633752de79e0d4eb91a298d07c07a25789be574 pkgname = mytetra - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..7f4dadae9533 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +*.pkg.tar.zst +*.tar.gz @@ -1,40 +1,36 @@ -# Maintainer: cyberxndr <cyberxndr@gmail.com> +# Maintainer: fft +# Contributor: cyberxndr <cyberxndr@gmail.com> pkgname=mytetra -pkgver=1.44.31 -pkgrel=1 +pkgver=1.44.160 +pkgrel=2 pkgdesc="Personal manager for data memorization and structuring notes" arch=('x86_64') url="https://github.com/xintrea/mytetra_dev" license=('GPL3') -source=("https://webhamster.ru/db/data/articles/105/mytetra_1_44_31_lin_64.tar.gz" - "https://gist.githubusercontent.com/cyberxndr/498db38606e53a56efb32d79a2c73b4a/raw/82f2a036d300058f6253732609654e73a8b8e020/mytetra.desktop") -noextract=( "mytetra.desktop") - -md5sums=('b2894692f4fde8d35f1cb2ea48758222' - '52f0675d8fa88fa9a388e0f4a54fa7e6') - -prepare(){ - cd mytetra_1_44_31_lin_64 - echo '#!/bin/sh' > mytetra.run - echo 'PROGDIR="/opt/mytetra"' >> mytetra.run - echo 'LD_LIBRARY_PATH=$PROGDIR/lib:${LD_LIBRARY_PATH}' >> mytetra.run - echo 'export LD_LIBRARY_PATH' >> mytetra.run - echo '$PROGDIR/mytetra' >> mytetra.run +depends=('hicolor-icon-theme' 'qt5-base') +source=( + "https://github.com/xintrea/mytetra_dev/archive/refs/tags/v.${pkgver}.tar.gz" + 'p1.patch' +) + +sha256sums=( + '301c297bc359197e07afa2302841a0f7e24c5589ea0b0f5e13b9c2ff6806a562' + '8cb3ba6defeb12da6a7cada7e633752de79e0d4eb91a298d07c07a25789be574' +) + +build(){ + cd "mytetra_dev-v.${pkgver}" + patch thirdParty/mimetex/mimetex.c ../p1.patch + qmake + make } - package(){ - install -Dm 644 mytetra_1_44_31_lin_64/mytetra.png "${pkgdir}/usr/share/pixmaps/mytetra.png" - install -Dm 644 mytetra.desktop "${pkgdir}/usr/share/applications/mytetra.desktop" - - cd mytetra_1_44_31_lin_64 - - mkdir -p "${pkgdir}/opt/mytetra" - cp * "${pkgdir}/opt/mytetra/" -r - - mkdir -p "${pkgdir}/usr/bin/" - ln -s /opt/mytetra/mytetra.run "${pkgdir}/usr/bin/mytetra" + cd "mytetra_dev-v.${pkgver}/app" + make install INSTALL_ROOT="${pkgdir}" + mkdir -p "${pkgdir}/usr/bin/" + mv "${pkgdir}/mytetra" "${pkgdir}/usr/bin/" } diff --git a/p1.patch b/p1.patch new file mode 100644 index 000000000000..2a40d8c13cac --- /dev/null +++ b/p1.patch @@ -0,0 +1,36 @@ +--- src/mytetra_dev-v.1.44.160/thirdParty/mimetex/mimetex.c 2023-11-19 11:15:53.686542658 +0400 ++++ src/mytetra_dev-v.1.44.160/thirdParty/mimetex/mimetex.c 2023-11-19 11:15:19.953209838 +0400 +@@ -422,11 +422,6 @@ + header files and macros + -------------------------------------------------------------------------- */ + +-// #define _GNU_SOURCE /* for strcasestr() in string.h */ +-// char *strcasestr(); /* non-standard extension */ +-// #define _GNU_SOURCE char *strcasestr(const char *haystack, const char *needle); +-const char *strcasestr(const char *s1, const char *s2); +- + /* --- standard headers --- */ + #include <stdio.h> + #include <stdlib.h> +@@ -18307,21 +18302,5 @@ + return 0; + } + +-const char *strcasestr(const char *s1, const char *s2) +-{ +- // if either pointer is null +- if (s1 == 0 || s2 == 0) +- return 0; +- // the length of the needle +- size_t n = strlen(s2); +- // iterate through the string +- while(*s1) +- // if the compare which is case insensitive is a match, return the pointer +- if(!mystrncmpi(s1++,s2,n)) +- return (s1-1); +- // no match was found +- return 0; +-} +- + /* ======================= END-OF-FILE MIMETEX.C ========================= */ + |