Skip to content

Instantly share code, notes, and snippets.

@agentsib
Last active June 24, 2018 13:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save agentsib/515deb641da1ea43b3c9cd1bea1d4db4 to your computer and use it in GitHub Desktop.
Save agentsib/515deb641da1ea43b3c9cd1bea1d4db4 to your computer and use it in GitHub Desktop.
Joxi 3
[Desktop Entry]
Categories=Network;Application;
Comment=Joxi
Exec=joxi
GenericName=joxi
Name=Joxi
X-KDE-StartupNotify=true
MimeType=application/x-designer;
Icon=joxi.png
Terminal=false
Type=Application
Version=0.1
Name[ru_RU]=Joxi
#!/bin/sh
#export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/usr/lib/joxi
export LD_PRELOAD=/usr/lib/libcurl.so.3
exec /usr/lib/joxi/joxi
# Maintainer: Ilya Kovalenko <agentsib@gmail.com>
pkgname=joxi
pkgver=3.0.9
pkgrel=1
pkgdesc="Easy to use screenshot sharing application (Russian)"
arch=('i386' 'x86_64')
url="http://joxi.ru/"
license=('unknown')
options=('emptydirs')
depends=('qt5-quick1' 'libpng12' 'quazip' 'opencv' 'libappindicator-sharp' 'qt5-x11extras' 'libcurl-compat')
if [ "${CARCH}" = 'x86_64' ]; then
ARCH='amd64'
md5sums=(
'df45548198336228ff413681ee18fb9c'
'66ef866e3fe32bbfd9eb72fe5ce02b7e'
'f7e20cde33e15bfd7cf0c50e2f192dec'
)
elif [ "${CARCH}" = 'i686' ]; then
ARCH='i386'
md5sums=(
'48327f33e6b055c26d25ba40717e291b'
'66ef866e3fe32bbfd9eb72fe5ce02b7e'
'f7e20cde33e15bfd7cf0c50e2f192dec'
)
fi
source=("http://dl.joxi.ru/linux/${pkgname}-${pkgver}_${ARCH}.deb" "${pkgname}.desktop" "${pkgname}.sh")
package(){
ar -x "${srcdir}/${pkgname}-${pkgver}_${ARCH}.deb"
tar -xvpf "${srcdir}/data.tar.xz"
install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/joxi"
install -d "${pkgdir}/usr/lib/joxi"
install -D -m755 "${srcdir}/usr/bin/joxi" "${pkgdir}/usr/lib/joxi/joxi"
install -D -m644 "${srcdir}/etc/ld.so.conf.d/joxi.conf" "${pkgdir}/etc/ld.so.conf.d/joxi.conf"
install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -D -m644 "${srcdir}/opt/joxi/icon_64.png" "${pkgdir}/usr/share/pixmaps/joxi.png"
}
@resetko
Copy link

resetko commented Apr 28, 2016

Может имеет смысл создать репо с этим PKGBUILD отдельное? я просто не знаком с тем как обычно строится разработка пакетов в AUR. Просто тогда случись что - всегда можно будет позвать кого-то на помощь

@agentsib
Copy link
Author

@resetko
Можно создать и отдельный. Но есть ли смысл. По пакету осталось проверить список зависимостей. Мне не нравиться, что пришлось тянуть весь qt5 и не уверен нужен ли libpng12. Для проверки нужно поднять на виртуалке голый арч и определиться с минимальным количеством пакетов. У меня пока нет времени... На выходных только смогу сделать.

@vyegres
Copy link

vyegres commented Jun 9, 2016

попытался собрать по этому PKGBUILD(пришлось немного поправить).
При запуске вот такой лог:

/usr/lib/joxi/joxi: /usr/lib/libcurl.so.3: no version information available (required by /usr/lib/joxi/joxi)
Qml debugging is enabled. Only use this in a safe environment!
QSqlQuery::value: not positioned on a valid record
QSqlQuery::value: not positioned on a valid record
QSqlQuery::value: not positioned on a valid record
libpng warning: iCCP: known incorrect sRGB profile
QSqlQuery::value: not positioned on a valid record
QSqlQuery::value: not positioned on a valid record
QSqlQuery::value: not positioned on a valid record
Cannot mix incompatible Qt library (version 0x50501) with this library (version 0x50600)
[1]    4321 abort (core dumped)  joxi

я так понимаю тут еще опрделенная версия Qt должна быть

@vyegres
Copy link

vyegres commented Jun 9, 2016

сообственно в deb прописаны такие зависимости:
ibqt5declarative5, libqt5widgets5, libqt5x11extras5, libqt5gui5, libqt5sql5, libqt5sql5-sqlite, libqt5network5, libqt5core5a, libqt5script5, libqt5xmlpatterns5, libqt5xml5, libqt5multimedia5, libgl1-mesa-glx, libx11-6, libc6, libstdc++6, libxdamage1, libappindicator1, libglib2.0-0, libgtk2.0-0, libmcrypt4, libcurl3

@zikrach
Copy link

zikrach commented Jun 22, 2016

Привет!
Вот финал моих проб:
[dimon@notebook ~]$ joxi
/usr/lib/joxi/joxi: /usr/lib/libcurl.so.3: no version information available (required by /usr/lib/joxi/joxi)
Qml debugging is enabled. Only use this in a safe environment!
QSqlQuery::value: not positioned on a valid record
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
onVisibleChanged * 1
implicitWidth -1 170
QSqlQuery::value: not positioned on a valid record
implicitWidth 0 170
implicitWidth 0 170
qrc:/qml/qml/Components/LoginPushButton.qml:20:5: QML Text: Possible anchor loop detected on fill.
qrc:/qml/qml/Components/Window.qml:113:9: QML Item: Cannot anchor to an item that isn't a parent or sibling.
qrc:/qml/qml/Components/Window.qml:113:9: QML Item: Cannot anchor to an item that isn't a parent or sibling.
qrc:/qml/qml/Components/ToolPushButton.qml:9: ReferenceError: Can't find variable: tool
qrc:/qml/qml/Components/ToolPushButton.qml:9: ReferenceError: Can't find variable: tool
QSqlQuery::value: not positioned on a valid record
QSqlQuery::value: not positioned on a valid record
QObject::connect: No such slot BlackoutArea::update()
QObject::connect: (sender name: 'JPainterArea')
QSqlQuery::value: not positioned on a valid record
QSqlQuery::value: not positioned on a valid record
QObject::connect: No such slot BlackoutArea::update()
QObject::connect: (sender name: 'JPainterArea')
onVisibleChanged * 1
implicitWidth -1 210
QSqlQuery::value: not positioned on a valid record
QSqlQuery::value: not positioned on a valid record
QDeclarativeExpression: Expression "(function $x() { return (surface.width - selector.rubberRectRight < 115) ? selector.rubberRectLeft - width - 10 : selector.rubberRectRight + 10 })" depends on non-NOTIFYable properties:
SurfaceWidget::width
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
implicitWidth 0 210
implicitWidth 0 210
`
еще пришлось доставить libmcrypt и qt5-multimedia

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