blob: fc9aed6d91e24329f1a2c5d3460718b1f8764642 (
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
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=aria2-next
pkgver=2.7.4
pkgrel=1
pkgdesc="Maintained aria2 fork with extensive bug fixes and modernized architecture"
arch=($CARCH)
url="https://github.com/AnInsomniacy/aria2-next"
license=('GPL-2.0-or-later')
provides=(${pkgname})
conflicts=(${pkgname})
#replaces=(${pkgname})
depends=(
c-ares
expat
libgcc_s.so
libstdc++.so
libssh2
libz.so
openssl
sqlite
)
makedepends=(
git
boost
boost-libs
ca-certificates
cmake
cppunit
curl
fmt
gnutls
gzip
libssh2
libtorrent-rasterbar
ninja
pkgconf
spdlog
)
optdepends=('motrix-next: A full-featured download manager rebuilt with Tauri 2, Vue 3, and Rust')
backup=()
options=()
#install=${pkgname}.install
source=("${pkgname}::git+${url}.git#tag=v${pkgver}")
sha256sums=('8defad27ed9dc4c0f73b06e49e1dd422c1ef0fd54656fcf9c3cbf3bf9a32b3bf')
prepare() {
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "${srcdir}/${pkgname}"
# see:https://wiki.archlinux.org/title/CMake_package_guidelines
cmake -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=OFF \
-DCMAKE_SKIP_RPATH=ON \
-Wno-author \
-B build \
-G Ninja
ninja -C build
}
package() {
cd "${srcdir}/${pkgname}"
# DESTDIR="${pkgdir}" ninja -C build install
install -Dvm0755 build/aria2-next -t "${pkgdir}/usr/bin/"
install -Dvm0644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|