Switch to building from source. Use jackett-bin package to avoid compiling.
This commit is contained in:
parent
5229209041
commit
7609fc8b8d
2 changed files with 27 additions and 24 deletions
8
.SRCINFO
8
.SRCINFO
|
@ -11,18 +11,14 @@ pkgbase = jackett
|
|||
depends = openssl-1.0
|
||||
options = !strip
|
||||
options = staticlibs
|
||||
source = jackett-0.16.1964.tar.gz::https://github.com/Jackett/Jackett/archive/v0.16.1964.tar.gz
|
||||
source = jackett.service
|
||||
source = jackett.sysusers
|
||||
source = jackett.tmpfiles
|
||||
sha256sums = 5bb9106775d5afa9e78b74226b451f138bf1ea1472f1fd6a6931f2a0d464eeb6
|
||||
sha256sums = 9d8f9d73e5fa2b2877dde010c0d8ca6fbf47f03eb1f01b02f846026a949a0dcf
|
||||
sha256sums = d005fcd009ec5404e1ec88246c31e664167f5551d6cabc35f68eb41750bfe590
|
||||
sha256sums = 64022e15565a609f449090f02d53ee90ef95cffec52ae14f99e4e2132b6cffe1
|
||||
source_x86_64 = Jackett.Binaries.LinuxAMDx64-0.16.1964.tar.gz::https://github.com/Jackett/Jackett/releases/download/v0.16.1964/Jackett.Binaries.LinuxAMDx64.tar.gz
|
||||
sha256sums_x86_64 = 24105fe72011771d05758456bdd30e9024bb895b12621a105efaa66970ebc0e4
|
||||
source_aarch64 = Jackett.Binaries.LinuxARM64-0.16.1964.tar.gz::https://github.com/Jackett/Jackett/releases/download/v0.16.1964/Jackett.Binaries.LinuxARM64.tar.gz
|
||||
sha256sums_aarch64 = 138e9676eba71a3c584bf5fbb6a7d8437bd50cda1fc11024ceacd03ae7c953ff
|
||||
source_armv7h = Jackett.Binaries.LinuxARM32-0.16.1964.tar.gz::https://github.com/Jackett/Jackett/releases/download/v0.16.1964/Jackett.Binaries.LinuxARM32.tar.gz
|
||||
sha256sums_armv7h = c436aca1e5536e98d9fbf019e631e2b05926d5237c8c19df92e7b53fea1a25c3
|
||||
|
||||
pkgname = jackett
|
||||
|
||||
|
|
43
PKGBUILD
43
PKGBUILD
|
@ -10,30 +10,37 @@ url='https://github.com/Jackett/Jackett'
|
|||
depends=('curl' 'openssl-1.0')
|
||||
options=('!strip' 'staticlibs')
|
||||
|
||||
source=("jackett.service"
|
||||
"jackett.sysusers"
|
||||
"jackett.tmpfiles")
|
||||
source=(
|
||||
"${pkgname}-${pkgver}.tar.gz::https://github.com/Jackett/Jackett/archive/v${pkgver}.tar.gz"
|
||||
'jackett.service'
|
||||
'jackett.sysusers'
|
||||
'jackett.tmpfiles'
|
||||
)
|
||||
|
||||
source_x86_64=("Jackett.Binaries.LinuxAMDx64-${pkgver}.tar.gz::https://github.com/Jackett/Jackett/releases/download/v${pkgver}/Jackett.Binaries.LinuxAMDx64.tar.gz")
|
||||
source_aarch64=("Jackett.Binaries.LinuxARM64-${pkgver}.tar.gz::https://github.com/Jackett/Jackett/releases/download/v${pkgver}/Jackett.Binaries.LinuxARM64.tar.gz")
|
||||
source_armv7h=("Jackett.Binaries.LinuxARM32-${pkgver}.tar.gz::https://github.com/Jackett/Jackett/releases/download/v${pkgver}/Jackett.Binaries.LinuxARM32.tar.gz")
|
||||
|
||||
sha256sums=('9d8f9d73e5fa2b2877dde010c0d8ca6fbf47f03eb1f01b02f846026a949a0dcf'
|
||||
sha256sums=('5bb9106775d5afa9e78b74226b451f138bf1ea1472f1fd6a6931f2a0d464eeb6'
|
||||
'9d8f9d73e5fa2b2877dde010c0d8ca6fbf47f03eb1f01b02f846026a949a0dcf'
|
||||
'd005fcd009ec5404e1ec88246c31e664167f5551d6cabc35f68eb41750bfe590'
|
||||
'64022e15565a609f449090f02d53ee90ef95cffec52ae14f99e4e2132b6cffe1')
|
||||
sha256sums_x86_64=('24105fe72011771d05758456bdd30e9024bb895b12621a105efaa66970ebc0e4')
|
||||
sha256sums_aarch64=('138e9676eba71a3c584bf5fbb6a7d8437bd50cda1fc11024ceacd03ae7c953ff')
|
||||
sha256sums_armv7h=('c436aca1e5536e98d9fbf019e631e2b05926d5237c8c19df92e7b53fea1a25c3')
|
||||
|
||||
build() {
|
||||
cd ${pkgname^}-${pkgver}
|
||||
|
||||
case ${CARCH} in
|
||||
x86_64) _CARCH='x64';;
|
||||
aarch64) _CARCH='arm64';;
|
||||
armv7h) _CARCH='arm';;
|
||||
esac
|
||||
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
dotnet publish src/Jackett.Server -f netcoreapp3.1 --self-contained -r linux-${_CARCH} -c Debug -o buid/ /p:AssemblyVersion=${pkgver} /p:FileVersion=${pkgver} /p:InformationalVersion=${pkgver} /p:Version=${pkgver}
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"
|
||||
cd ${pkgname^}-${pkgver}
|
||||
install -d -m 755 "${pkgdir}/usr/lib/jackett/"
|
||||
cp -dpr --no-preserve=ownership buid/* "${pkgdir}/usr/lib/jackett/"
|
||||
|
||||
install -d -m 755 "${pkgdir}/usr/lib/jackett/"
|
||||
cp -dpr --no-preserve=ownership "${srcdir}/Jackett/"* "${pkgdir}/usr/lib/jackett/"
|
||||
|
||||
install -D -m 644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service"
|
||||
install -D -m 644 "${srcdir}/jackett.sysusers" "${pkgdir}/usr/lib/sysusers.d/jackett.conf"
|
||||
install -D -m 644 "${srcdir}/jackett.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/jackett.conf"
|
||||
install -D -m 644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service"
|
||||
install -D -m 644 "${srcdir}/jackett.sysusers" "${pkgdir}/usr/lib/sysusers.d/jackett.conf"
|
||||
install -D -m 644 "${srcdir}/jackett.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/jackett.conf"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue