From 1617a485ad9cedaaac03307f5622a13f7549192b Mon Sep 17 00:00:00 2001 From: Integral Date: Sun, 29 Dec 2024 13:24:15 +0800 Subject: [PATCH] daed: extract depends array from package() & use variable _url to simplify source --- archlinuxcn/daed/PKGBUILD | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/archlinuxcn/daed/PKGBUILD b/archlinuxcn/daed/PKGBUILD index fc9b174bbacd..2a7adbb35d3b 100644 --- a/archlinuxcn/daed/PKGBUILD +++ b/archlinuxcn/daed/PKGBUILD @@ -8,10 +8,11 @@ pkgdesc="A modern dashboard for dae, bundled with dae-wing (backend API server) arch=('x86_64' 'aarch64') url="https://github.com/daeuniverse/${pkgname}" license=('AGPL-3.0-or-later AND MIT') +depends=('v2ray-geoip' 'v2ray-domain-list-community') makedepends=('pnpm' 'clang' 'go') provides=('dae') conflicts=('dae') -source=("${pkgname}-${pkgver}.zip::https://github.com/daeuniverse/${pkgname}/releases/download/v${pkgver}/${pkgname}-full-src.zip") +source=("${pkgname}-${pkgver}.zip::${url}/releases/download/v${pkgver}/${pkgname}-full-src.zip") sha512sums=('b1ea9e764e14cd36d5fa09c5d42d6e9b505d58f1d16381b61a224e571471a8f623d743b46170fe8c9ef4c54d4edf27474c2b9d31d5a7c7297cf2051b88b7f2d8') install="${pkgname}.install" options=(!debug) @@ -24,11 +25,6 @@ build() { } package() { - depends=( - v2ray-geoip - v2ray-domain-list-community - ) - install -vDm755 "${pkgname}" -t "${pkgdir}/usr/bin/" install -vDm644 "install/${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system/" install -vDm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"