blob: 47b21081b2eef0b43692c998be9da467e2abf4a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#Maintainer: HEx_404 < HEx_404x at proton dot me >
#Contributor: ZorinArch < zorinarch at protonmail dot com >
pkgname=abdownloadmanager-bin
pkgver=1.4.3
pkgrel=1
pkgdesc="A Download Manager that speeds up your downloads"
arch=('x86_64')
url="https://abdownloadmanager.com/"
license=('Apache-2.0')
depends=(
'glibc'
'java-runtime'
'zlib'
'alsa-lib'
'libglvnd'
'libxi'
'freetype2'
'libxtst'
'libxrender'
'fontconfig'
'libx11'
'libxext'
)
provides=('abdownloadmanager')
conflicts=('abdownloadmanager')
options=(!debug)
source=("https://github.com/amir1376/${pkgname%-bin}/releases/download/v${pkgver}/ABDownloadManager_${pkgver}_linux_x64.deb")
sha256sums=('ca4e91832b2a08ee1716d677f01fd10433aec7245cbf3adcb3c775ef880d3f0a')
prepare() {
bsdtar -xvf "${srcdir}/data.tar.zst" -C "${srcdir}/"
}
build() {
sed -e 's|AB Download Manager|Network;|' \
-e 's|Icon=\/opt\/abdownloadmanager\/lib\/ABDownloadManager.png|Icon=abdownloadmanager|' \
-e 's|Comment=ABDownloadManager|Comment=Download Manager that speeds up your downloads|' \
-e 's|MimeType=|StartupNotify=false|' \
-e '$aStartupWMClass=com.abdownloadmanager.ABDownloadManager' \
-e '$aGenericName=Download Manager' \
-i "${srcdir}/opt/abdownloadmanager/lib/abdownloadmanager-ABDownloadManager.desktop"
}
package() {
rm -rf "${srcdir}/opt/abdownloadmanager/share/"
install -dm755 "${pkgdir}/opt"
cp --preserve=mode -r "${srcdir}/opt" "${pkgdir}/"
install -dm755 "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/opt/abdownloadmanager/lib/abdownloadmanager-ABDownloadManager.desktop" \
"${pkgdir}/usr/share/applications/abdownloadmanager.desktop"
install -dm755 "${pkgdir}/usr/share/icons/hicolor/512x512/apps"
cp "${srcdir}/opt/abdownloadmanager/lib/ABDownloadManager.png" \
"${pkgdir}/usr/share/icons/hicolor/512x512/apps/abdownloadmanager.png"
rm -f "${pkgdir}/opt/abdownloadmanager/lib/abdownloadmanager-ABDownloadManager.desktop"
rm -f "${pkgdir}/opt/abdownloadmanager/lib/ABDownloadManager.png"
}
|