You are not logged in.

#1 2024-08-09 16:59:01

HEx_404
Member
Registered: 2024-08-09
Posts: 1

PKGBUILD review : abdownloadmanager-bin

Hi, Im new to this, I made a PKGBUILD for a download manager named abdownloadmanager which only has a debian .deb release and would like to get it reviewed

#Maintainer: HEx_404 <HEx_404x at proton dot me>
pkgname=abdownloadmanager-bin
pkgver=1.0.6
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.deb")
md5sums=('4a25358e37560c6f803150e504067f02')

package() {
    cd "${srcdir}"
    bsdtar -xvf "${srcdir}/data.tar.zst"
    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"
	sed -i "$ a StartupWMClass=com-abdownloadmanager-desktop-AppKt" "${pkgdir}/usr/share/applications/abdownloadmanager.desktop"

	install -dm755 "${pkgdir}/usr/share/pixmaps"
	cp "${srcdir}/opt/abdownloadmanager/lib/ABDownloadManager.png" \
	   "${pkgdir}/usr/share/pixmaps/abdownloadmanager.png"
}

Offline

Board footer

Powered by FluxBB