diff options
author | Mark Wagie | 2024-01-01 09:11:16 -0700 |
---|---|---|
committer | Mark Wagie | 2024-01-01 09:11:16 -0700 |
commit | d316e21585fe25e5f99c3e3d635fe66bead44709 (patch) | |
tree | 264a746a062b23a2a8c50fcde652074a0e2bcbbf | |
download | aur-d316e21585fe25e5f99c3e3d635fe66bead44709.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 77 |
3 files changed, 104 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6336320fdc76 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = arrowdl + pkgdesc = A mass download manager that helps you to select, organize, prioritize and run your downloads in parallel. + pkgver = 4.0.0 + pkgrel = 1 + url = https://www.arrow-dl.com/ArrowDL + arch = x86_64 + license = LGPL3 + license = CC BY-SA 3.0 + makedepends = boost + makedepends = cmake + makedepends = qt6-tools + depends = libtorrent-rasterbar + depends = qt6-base + depends = yt-dlp + conflicts = downzemall + replaces = downzemall + source = arrowdl-4.0.0.tar.gz::https://github.com/setvisible/ArrowDL/archive/v4.0.0.tar.gz + sha256sums = e86feb958b200977483d7ae222e7b96315579b88af75d2fc215dd2605a43f311 + +pkgname = arrowdl diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4dab8d6386e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2d3315910dca --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: Mark Wagie <mark dot wagie at proton dot me> +pkgname=arrowdl +pkgver=4.0.0 +pkgrel=1 +pkgdesc="A mass download manager that helps you to select, organize, prioritize and run your downloads in parallel." +arch=('x86_64') +url="https://www.arrow-dl.com/ArrowDL" +license=('LGPL3' 'CC BY-SA 3.0') +depends=('libtorrent-rasterbar' 'qt6-base' 'yt-dlp') +makedepends=('boost' 'cmake' 'qt6-tools') +conflicts=('downzemall') +replaces=('downzemall') +source=("$pkgname-$pkgver.tar.gz::https://github.com/setvisible/ArrowDL/archive/v$pkgver.tar.gz") +sha256sums=('e86feb958b200977483d7ae222e7b96315579b88af75d2fc215dd2605a43f311') + +prepare() { + cd "ArrowDL-$pkgver" + + # set absolute path to app directory + sed -i 's|ABSOLUTE/PATH/TO/APP/DIRECTORY|opt/arrowdl|g' \ + web-extension/launcher/unix/*.json + + # Look for system shared object, not source archive + sed -i 's/libtorrent-rasterbar.a/libtorrent-rasterbar.so/g' \ + cmake/Modules/FindLibtorrentRasterbar.cmake +} + +build() { + cmake -B build -S "ArrowDL-$pkgver" \ + -DCMAKE_BUILD_TYPE='RelWithDebInfo' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_SKIP_RPATH='YES' \ + -DBUILD_TESTS='OFF' \ + -DLibtorrentRasterbar_LIBRARIES='/usr/lib/libtorrent-rasterbar.so' \ + -DOPENSSL_INCLUDE_DIRS='/usr/include/openssl' \ + -DOPENSSL_CRYPTO_LIBRARY='/usr/lib/libcrypto.so' \ + -DOPENSSL_SSL_LIBRARY='/usr/lib/libssl.so' \ + -Wno-dev + cmake --build build +} + +package() { + cd "ArrowDL-$pkgver" + install -Dm755 ../build/src/ArrowDL -t "$pkgdir/opt/$pkgname/" + install -Dm755 ../build/web-extension/launcher/launcher -t "$pkgdir/opt/$pkgname/" + install -Dm644 ../build/src/*.qm -t "$pkgdir/opt/$pkgname/locale/" + + install -Dm644 web-extension/launcher/unix/launcher-manifest-chrome.json \ + "$pkgdir/etc/chromium/native-messaging-hosts/com.setvisible.downrightnow.json" + install -Dm644 web-extension/launcher/unix/launcher-manifest-chrome.json \ + "$pkgdir/etc/opt/chrome/native-messaging-hosts/com.setvisible.downrightnow.json" + install -Dm644 web-extension/launcher/unix/launcher-manifest-firefox.json \ + "$pkgdir/usr/lib/mozilla/native-messaging-hosts/DownRightNow.json" + + install -Dm644 src/resources/logo/LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LOGO_LICENSE.txt" + + install -Dm644 installer/unix/appimage/ArrowDL.desktop -t \ + "$pkgdir/usr/share/applications/" + + install -Dm644 src/resources/logo/ArrowDL.svg -t \ + "$pkgdir/usr/share/icons/hicolor/scalable/apps/" + for i in 16 24 32 48 64 128 256 512 1024; do + install -Dm644 "src/resources/logo/icon${i}.png" \ + "$pkgdir/$usr/share/icons/hicolor/${i}x${i}/apps/ArrowDL.png" + done + + install -d "$pkgdir/usr/bin" + ln -s "/opt/$pkgname/ArrowDL" "$pkgdir/usr/bin/" + + # Use system yt-dlp + ln -s /usr/bin/yt-dlp "$pkgdir/opt/$pkgname/" + + # Allow write permissions to queue.json + touch "$pkgdir/opt/$pkgname/queue.json" + chmod 777 "$pkgdir/opt/$pkgname/queue.json" +} |