blob: e81d97ea684c5b0354fa8b267f139b7abc7bc2a4 (
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
|
# Maintainer: devome <evinedeng@hotmail.com>
_pkgname=iventoy
pkgname="${_pkgname}-bin"
pkgver=1.0.20
pkgrel=1
pkgdesc="An enhanced version of the PXE server"
arch=("x86_64")
url="https://www.iventoy.com"
license=("custom")
provides=("${_pkgname}")
install="${_pkgname}.install"
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/ventoy/PXE/releases/download/v${pkgver}/${_pkgname}-${pkgver}-linux-free.tar.gz"
"${_pkgname}"
"${_pkgname}.service"
"${_pkgname}.tmpfiles")
sha256sums=('e29fed7921b0efbbceb371b710ab20da758e3b6456c8e713694690689a1cf119'
'ef27beecddc5a9650194e8b033ae0b3172f29a9bf352cfff079a61ece86a3263'
'0d6bf1e0a6ae2161b83255853879ce23b4f783b607b7a73cb0eb0a82baadd108'
'84436ca3719486543f522ac771618b6c10d92c13be7e649776a631af87844e14')
options=(!strip)
prepare() {
sed -i 's|#! /bin/bash|#!/bin/bash|' "${_pkgname}-${pkgver}/${_pkgname}.sh"
}
package() {
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
install -Dm644 "${_pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf"
cd "${_pkgname}-${pkgver}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" doc/*
install -Dm644 -t "${pkgdir}/opt/${_pkgname}/data" data/*
install -Dm644 -t "${pkgdir}/usr/share/${_pkgname}/scripts" user/scripts/example/*
install -Dm755 -t "${pkgdir}/opt/${_pkgname}/lib/lin64" lib/lin64/*
install -Dm755 -t "${pkgdir}/opt/${_pkgname}/lib" "lib/${_pkgname}"
install -Dm755 -t "${pkgdir}/opt/${_pkgname}" "${_pkgname}.sh"
ln -s "/var/lib/${_pkgname}/config.dat" "${pkgdir}/opt/${_pkgname}/data/config.dat"
ln -s "/var/lib/${_pkgname}/iso" "${pkgdir}/opt/${_pkgname}/iso"
ln -s "/var/log/${_pkgname}" "${pkgdir}/opt/${_pkgname}/log"
}
|