blob: 9614bbb80e95f200152a8379f1e83b71aa2c6d9f (
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
|
# Maintainer: Ayatale <ayatale@qq.com>
# Maintainer: sukanka <su975853527@gmail.com>
pkgname=alist-bin
_pkgname=${pkgname%-bin}
pkgver=3.40.0
pkgrel=1
pkgdesc="Another file list program that supports multiple storage"
arch=("aarch64" "x86_64")
url="https://github.com/alist-org/alist"
license=('AGPL-3.0-only')
provides=(${_pkgname})
backup=("etc/alist/config.json")
optdepends=('aria2: download by aria2.')
source=("alist.service" "config.json" "alist.sysusers" "alist.tmpfiles")
install=alist.install
source_aarch64=("$_pkgname-$pkgver-aarch64.tar.gz"::"${url}/releases/download/v${pkgver//_/-}/alist-linux-arm64.tar.gz")
source_x86_64=("$_pkgname-$pkgver-x86_64.tar.gz"::"${url}/releases/download/v${pkgver//_/-}/alist-linux-amd64.tar.gz")
options=(!debug)
sha256sums=('5712b21aebf669fe9fb5d47dd685809d4d9670b1bb1d5e6fef962b9d11ba9d72'
'b72f194a7b8855e97eeb76e63e179f38132cc9e6be9daa5b396699c9c11611de'
'3658370660806f73c3d9bc5f1b6e2a013c9520d34ffc4462df99f7692473613d'
'c6b62c4a750ab921c2e8f965e4baeee28855c9a969b00eddd346670f2fdf12de')
sha256sums_aarch64=('48212ce771a1389a1d7f73edf6400318eab2c5ee9bd70a13da9067efd9af1112')
sha256sums_x86_64=('cba08e0c62c0bec1970529aa6805c3ce05e6041074038b1f8c0cc37fa0658875')
package() {
install -Dm755 alist ${pkgdir}/usr/bin/alist
install -Dm644 alist.service -t ${pkgdir}/usr/lib/systemd/system/
install -Dm644 config.json -t ${pkgdir}/etc/alist
install -Dm644 alist.sysusers ${pkgdir}/usr/lib/sysusers.d/alist.conf
install -Dm644 alist.tmpfiles ${pkgdir}/usr/lib/tmpfiles.d/alist.conf
}
|