blob: db922dc496f25be2b1c7bcd61987c993db648f8f (
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.1.0
pkgrel=2
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.deb")
sha256sums=('3ebd93e49958e81ddae0c57f6865d56b291f9575b4705c1937dabb61f7212177')
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|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"
}
|