diff options
-rw-r--r-- | .SRCINFO | 75 | ||||
-rw-r--r-- | PKGBUILD | 128 | ||||
-rw-r--r-- | dooble.sh | 17 |
3 files changed, 172 insertions, 48 deletions
@@ -1,23 +1,70 @@ pkgbase = dooble-bin - pkgdesc = Dooble is the scientific browser - pkgver = 2021.08.30 - pkgrel = 1 - url = https://textbrowser.github.io/dooble/ + pkgdesc = Web browser based on QtWebEngine + pkgver = 2023.11.30 + pkgrel = 4 + url = https://textbrowser.github.io/dooble arch = x86_64 - license = BSD - depends = alsa-lib - depends = fontconfig - depends = libgl - depends = libxcomposite + license = LicenseRef-Dooble + makedepends = findutils + depends = at-spi2-core + depends = cairo + depends = freetype2 + depends = gdk-pixbuf2 + depends = gpgme + depends = gst-plugins-base-libs + depends = gstreamer + depends = gtk3 + depends = libcups + depends = libdrm + depends = libglvnd + depends = libx11 + depends = libxcb + depends = libxext depends = libxkbcommon + depends = libxkbcommon-x11 depends = libxrandr + depends = pango + depends = postgresql-libs + depends = qt6-base + depends = qt6-charts + depends = qt6-declarative + depends = qt6-multimedia + depends = qt6-positioning + depends = qt6-serialport + depends = qt6-svg + depends = qt6-tools + depends = qt6-wayland + depends = qt6-webchannel + depends = qt6-webengine + depends = unixodbc + depends = wayland + depends = xcb-util-cursor + depends = xcb-util-image + depends = xcb-util-keysyms + depends = xcb-util-renderutil + depends = xcb-util-wm + depends = libxshmfence + depends = nspr + depends = alsa-lib + depends = krb5 + depends = libxtst + depends = libxcomposite + depends = libxfixes + depends = expat + depends = libxrender + depends = libxdamage + depends = fontconfig + depends = libxi + depends = libxkbfile depends = nss + optdepends = bzip2: needed in plugins/multimedia/libffmpegmediaplugin.so + provides = dooble=2023.11.30 conflicts = dooble - noextract = Dooble-2021.08.30_amd64.deb - options = !strip - source = https://github.com/textbrowser/dooble/releases/download/2021.08.30/Dooble-2021.08.30_amd64.deb - source = LICENSE-2021.08.30::https://github.com/textbrowser/dooble/raw/2021.08.30/LICENSE - sha256sums = 3d38489e51bc3e8a7690b5bd21302e0b320194479e62496e3f0c597366806557 + source = dooble-2023.11.30.tar.gz::https://github.com/textbrowser/dooble/releases/download/2023.11.30/Dooble-2023.11.30_amd64.deb + source = LICENSE-2023.11.30::https://raw.githubusercontent.com/textbrowser/dooble/2023.11.30/LICENSE + source = dooble.sh + sha256sums = ccbe838464b18cb3ae16580f0173df4346914504bccc6fc14db1bf537eb9da6d sha256sums = c60bf2d6a8bfdf7c7418bba91c6767cbb4b48dccae36dd5d9ffdb48f756815dd + sha256sums = 8c1c658ce21dc1f5fe8687c7406b3f263dc53e2498662c538d963644e9dacdf1 pkgname = dooble-bin @@ -1,38 +1,98 @@ -# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com> - -_pkgname=dooble -_repourl="https://github.com/textbrowser/dooble" - +# Maintainer: Klaus Alexander Seistrup <klaus at seistrup dot dk> +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +# Contributor: Balló György <ballogyor+arch at gmail dot com> +# Contributor: zhangkaizhao <zhangkaizhao at gmail dot com> pkgname=dooble-bin -pkgver=2021.08.30 -pkgrel=1 -pkgdesc="Dooble is the scientific browser" -arch=('x86_64') -url="https://textbrowser.github.io/dooble/" -license=('BSD') -conflicts=('dooble') -options=('!strip') -depends=('alsa-lib' 'fontconfig' 'libgl' 'libxcomposite' 'libxkbcommon' 'libxrandr' 'nss') -source=( - "https://github.com/textbrowser/dooble/releases/download/${pkgver}/Dooble-${pkgver}_amd64.deb" - "LICENSE-${pkgver}::${_repourl}/raw/${pkgver}/LICENSE" +_pkgname=Dooble +pkgver=2023.11.30 +pkgrel=4 +pkgdesc="Web browser based on QtWebEngine" +arch=("x86_64") +url="https://textbrowser.github.io/dooble" +_ghurl="https://github.com/textbrowser/dooble" +license=('LicenseRef-Dooble') +provides=("${pkgname%-bin}=${pkgver}") +conflicts=("${pkgname%-bin}") +depends=( + 'at-spi2-core' + 'cairo' + 'freetype2' + 'gdk-pixbuf2' + 'gpgme' + 'gst-plugins-base-libs' + 'gstreamer' + 'gtk3' + 'libcups' + 'libdrm' + 'libglvnd' + 'libx11' + 'libxcb' + 'libxext' + 'libxkbcommon' + 'libxkbcommon-x11' + 'libxrandr' + 'pango' + 'postgresql-libs' + 'qt6-base' + 'qt6-charts' + 'qt6-declarative' + 'qt6-multimedia' + 'qt6-positioning' + 'qt6-serialport' + 'qt6-svg' + 'qt6-tools' + 'qt6-wayland' + 'qt6-webchannel' + 'qt6-webengine' + 'unixodbc' + 'wayland' + 'xcb-util-cursor' + 'xcb-util-image' + 'xcb-util-keysyms' + 'xcb-util-renderutil' + 'xcb-util-wm' + 'libxshmfence' + 'nspr' + 'alsa-lib' + 'krb5' + 'libxtst' + 'libxcomposite' + 'libxfixes' + 'expat' + 'libxrender' + 'libxdamage' + 'fontconfig' + 'libxi' + 'libxkbfile' + 'nss' ) -noextract=("Dooble-${pkgver}_amd64.deb") -sha256sums=( - '3d38489e51bc3e8a7690b5bd21302e0b320194479e62496e3f0c597366806557' - 'c60bf2d6a8bfdf7c7418bba91c6767cbb4b48dccae36dd5d9ffdb48f756815dd' +optdepends=( + 'bzip2: needed in plugins/multimedia/libffmpegmediaplugin.so' ) - -package() { - bsdtar -O -xf "Dooble-${pkgver}_amd64.deb" data.tar.xz | bsdtar -C "${pkgdir}" -xJf - - - # Permission fix - find "${pkgdir}" -type d -exec chmod 755 {} + - - # Documentation - install -d "${pkgdir}/usr/share/doc" - ln -s "/opt/dooble/Documentation" "${pkgdir}/usr/share/doc/${_pkgname}" - - # License - install -D -m644 "LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" +makedepends=( + 'findutils' +) +source=( + "${pkgname%-bin}-${pkgver}.tar.gz::${_ghurl}/releases/download/${pkgver}/${_pkgname}-${pkgver}_amd64.deb" + "LICENSE-${pkgver}::https://raw.githubusercontent.com/textbrowser/dooble/${pkgver}/LICENSE" + "${pkgname%-bin}.sh" +) +sha256sums=('ccbe838464b18cb3ae16580f0173df4346914504bccc6fc14db1bf537eb9da6d' + 'c60bf2d6a8bfdf7c7418bba91c6767cbb4b48dccae36dd5d9ffdb48f756815dd' + '8c1c658ce21dc1f5fe8687c7406b3f263dc53e2498662c538d963644e9dacdf1') +build() { + sed -e "s|@appname@|${pkgname%-bin}|g" \ + -e "s|@runname@|${_pkgname}|g" \ + -i "${srcdir}/${pkgname%-bin}.sh" + bsdtar -xf "${srcdir}/data."* + cp "${srcdir}/opt/${pkgname%-bin}/Translations/${pkgname%-bin}_zh_CN_simple.qm" \ + "${srcdir}/opt/${pkgname%-bin}/Translations/${pkgname%-bin}_zh_CN.qm" + sed "s|/usr/bin/${pkgname%-bin}|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" } +package() { + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" + cp -r "${srcdir}/opt" "${pkgdir}" + install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "${srcdir}/usr/share/pixmaps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps" + install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" +}
\ No newline at end of file diff --git a/dooble.sh b/dooble.sh new file mode 100644 index 000000000000..1b5f4c55f6e7 --- /dev/null +++ b/dooble.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -e +_APPDIR=/opt/@appname@ +_RUNNAME="${_APPDIR}/@runname@" +export PATH="${_APPDIR}:${PATH}" +export LD_LIBRARY_PATH="${_APPDIR}/Lib:${LD_LIBRARY_PATH}" +export AA_ENABLEHIGHDPISCALING=1 +export AA_USEHIGHDPIPIXMAPS=1 +export DOOBLE_ADDRESS_WIDGET_HEIGHT_OFFSET=0 +export DOOBLE_GOOGLE_TRANSLATE_URL="https://%1.translate.goog/%2?_x_tr_sl=auto&_x_tr_tl=%3&_x_tr_hl=%3&_x_tr_pto=wapp" +export DOOBLE_TAB_HEIGHT_OFFSET=5 +export QT_AUTO_SCREEN_SCALE_FACTOR=1 +export QT_X11_NO_MITSHM=1 +export QTWEBENGINE_LOCALES_PATH="${_APPDIR}/qtwebengine_locales:${QTWEBENGINE_LOCALES_PATH}" +export QT_PLUGIN_PATH="${_APPDIR}/plugins:${QT_PLUGIN_PATH}" +cd "${_APPDIR}" +exec "${_RUNNAME}" "$@" || exit $?
\ No newline at end of file |