alist/3.30.0-2: repackaged and update version, update license field for follow RFC16
This commit is contained in:
parent
b38d3d0458
commit
89d414231c
@ -1,59 +1,34 @@
|
|||||||
# Maintainer: Puqns67 <me@puqns67.icu>
|
# Maintainer: Puqns67 <me@puqns67.icu>
|
||||||
|
|
||||||
_organization_url='https://github.com/alist-org'
|
|
||||||
_solid_router_git_hash='f77b206e8592bb56d2d001e9488de5a54a13699b'
|
|
||||||
|
|
||||||
pkgname='alist'
|
pkgname='alist'
|
||||||
pkgver=3.29.0
|
pkgver=3.30.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs.'
|
pkgdesc='A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs.'
|
||||||
url="${_organization_url}/${pkgname}"
|
url="https://github.com/alist-org/alist"
|
||||||
license=('AGPL3')
|
license=('AGPL-3.0-or-later')
|
||||||
arch=('i686' 'x86_64' 'armv7h' 'aarch64' 'riscv64')
|
arch=('x86_64' 'aarch64' 'riscv64')
|
||||||
depends=('glibc')
|
depends=('alist-web' 'glibc')
|
||||||
makedepends=('go' 'pnpm')
|
makedepends=('go')
|
||||||
|
|
||||||
source=("${pkgname}-backend-${pkgver}.tar.gz"::"${url}/archive/refs/tags/v${pkgver}.tar.gz"
|
source=("${pkgname}-${pkgver}.tar.gz"::"${url}/archive/refs/tags/v${pkgver}.tar.gz"
|
||||||
"${pkgname}-frontend-${pkgver}.tar.gz"::"${_organization_url}/${pkgname}-web/archive/refs/tags/${pkgver}.tar.gz"
|
|
||||||
"${pkgname}-solid_router-${_solid_router_git_hash}.tar.gz"::"${_organization_url}/solid-router/archive/${_solid_router_git_hash}.tar.gz"
|
|
||||||
"${pkgname}.service"
|
"${pkgname}.service"
|
||||||
|
"${pkgname}-config.json"
|
||||||
"${pkgname}-sysusers.conf"
|
"${pkgname}-sysusers.conf"
|
||||||
"${pkgname}-tmpfiles.conf")
|
"${pkgname}-tmpfiles.conf")
|
||||||
|
|
||||||
sha512sums=('75071a4f1132582a05206dc5eb99622fb5d98bcf5cbe380c9ba1cd3774f420d3983babd37010bb58a9a44afa06547b55167e4125126ec50cd987b36cbf5e0648'
|
sha512sums=('96b5b4aeaa5de9c9807ae13e8b63ee8c95854432b0e399610e2b6cdbdceac166b9102d7698907183a590435794364dced47b1927e34f0010f1eb89a199664f82'
|
||||||
'b11640c10f6f6be34446ae6aeacc0051b3d88b28bb753a0da2bd1c0b6c7649368acea3ba182ff7cd7635273504bd80dcff1af7f58f01d8874899d0f39b78ba86'
|
|
||||||
'0638e98b8f2866e7cbdd5420c6b31558aeeea05e521dd28c22b917da4c419df933f03d042ceba0a88b7a5a153e152b7abc32af1acc0b90e8be90c3ddbdd4f541'
|
|
||||||
'e8bfd6079626799ca7af015550c5605991631460d18be2aab41d58412488fd17672b9125c47cfb019d519d883d6b89e4f2f367eddfb30d5857e29fd91f582f78'
|
'e8bfd6079626799ca7af015550c5605991631460d18be2aab41d58412488fd17672b9125c47cfb019d519d883d6b89e4f2f367eddfb30d5857e29fd91f582f78'
|
||||||
|
'd7032d1e72e43f5e7ab053117031359c4a0df9be277d5e0224f81cbaa27004fe0c96c6351e9ea9a467aaa92847a9ec966f469d56aee8c5984816bb337f08caea'
|
||||||
'923dbd6ba9027524537097b2ab84d230a67bcef3f5adf2bb054e502b5806544836f012eb476803ce75d614686af0a4a070794ad1bdd768dc2fa6c26cdc3ac7a7'
|
'923dbd6ba9027524537097b2ab84d230a67bcef3f5adf2bb054e502b5806544836f012eb476803ce75d614686af0a4a070794ad1bdd768dc2fa6c26cdc3ac7a7'
|
||||||
'4ee3df8a34a326c101b831d9ac15469b5ffbe5dbb0ffa0936368d7bcb911c73d0e8bb1dc806992f11e718196ddd69fa6b424b385422c6743fd400b572ea24105')
|
'b642ea910aef67c99a4fdd1474cbf0d8996e1688309aa08026994c26b58a3b14ded273870bc29c3fb7d98c4203e6093ad2bd645a92a08183f4fe4f5232048a1d')
|
||||||
|
|
||||||
prepare() {
|
|
||||||
# Link frontend dist to backend sources.
|
|
||||||
rm -rfv "${srcdir}/${pkgname}-web-${pkgver}/dist"
|
|
||||||
ln -sfv "${srcdir}/${pkgname}-${pkgver}/public/dist" "${srcdir}/${pkgname}-web-${pkgver}/dist"
|
|
||||||
|
|
||||||
# Move solid-router to web sources.
|
|
||||||
rm -rfv "${srcdir}/${pkgname}-web-${pkgver}/solid-router"
|
|
||||||
mv -v "${srcdir}/solid-router-${_solid_router_git_hash}" "${srcdir}/${pkgname}-web-${pkgver}/solid-router"
|
|
||||||
|
|
||||||
# Update frontend version with $pkgver.
|
|
||||||
sed -ie "s/0.0.0/${pkgver}/g" "${srcdir}/${pkgname}-web-${pkgver}/package.json"
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
# Build frontend
|
|
||||||
cd "${srcdir}/${pkgname}-web-${pkgver}"
|
|
||||||
HUSKY=0 pnpm install
|
|
||||||
pnpm build
|
|
||||||
|
|
||||||
# Build backend
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
GOFLAGS="-trimpath -modcacherw" go build -o "${srcdir}/${pkgname}" \
|
go build -v -x -work -trimpath -modcacherw -o "${srcdir}/${pkgname}" \
|
||||||
-ldflags="-w -s -linkmode=external \
|
-ldflags="-w -s \
|
||||||
-X 'github.com/alist-org/alist/v3/internal/conf.BuiltAt=$(date +"%F %T %z")' \
|
-X 'github.com/alist-org/alist/v3/internal/conf.BuiltAt=$(date +"%F %T %z")' \
|
||||||
-X 'github.com/alist-org/alist/v3/internal/conf.GoVersion=$(go version | sed "s/go version //")' \
|
-X 'github.com/alist-org/alist/v3/internal/conf.GoVersion=$(go version | sed "s/go version //")' \
|
||||||
-X 'github.com/alist-org/alist/v3/internal/conf.Version=${pkgver}' \
|
-X 'github.com/alist-org/alist/v3/internal/conf.Version=${pkgver}'"
|
||||||
-X 'github.com/alist-org/alist/v3/internal/conf.WebVersion=${pkgver}'"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
7
packages/alist/alist-config.json
Normal file
7
packages/alist/alist-config.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"dist_dir": "/usr/share/alist-web",
|
||||||
|
"temp_dir": "/var/cache/alist",
|
||||||
|
"log": {
|
||||||
|
"name": "/var/log/alist/alist.log"
|
||||||
|
}
|
||||||
|
}
|
@ -4,5 +4,5 @@ d /run/alist 0755 alist alist - -
|
|||||||
d /var/cache/alist 0755 alist alist - -
|
d /var/cache/alist 0755 alist alist - -
|
||||||
d /var/lib/alist 0755 alist alist - -
|
d /var/lib/alist 0755 alist alist - -
|
||||||
d /var/log/alist 0755 alist alist - -
|
d /var/log/alist 0755 alist alist - -
|
||||||
f /etc/alist/config.json 0644 alist alist - {"temp_dir": "/var/cache/alist", "log": {"name": "/var/log/alist/alist.log"}}
|
e /etc/alist/config.json 0644 alist alist - -
|
||||||
L /var/lib/alist/config.json 0644 alist alist - /etc/alist/config.json
|
L /var/lib/alist/config.json 0644 alist alist - /etc/alist/config.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user