blob: 4826a106d1902160456880e10a664bb8ec800aab (
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
|
# Maintainer: devome <evinedeng@hotmail.com>
pkgname=iyuuplus
pkgver=8.1.13
pkgrel=1
epoch=3
pkgdesc="IYUU Auto Reseed Plus"
arch=("any")
url="https://github.com/ledccn/iyuuplus-dev"
license=("MIT")
provides=("${pkgname}")
conflicts=("${pkgname}")
depends=("composer" "mariadb" "php-gd" "php-sodium")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
"${pkgname}.service"
"${pkgname}.sysusers"
"${pkgname}.tmpfiles")
sha256sums=('f93ae813c1d18c32140116cf8b8725e623beaac0372bbee94d2a6624a0b824b5'
'e20db7d3e6cdaa5f3b345bde4bd63cde2458b23516c80cfebcf0a32ec19d921c'
'e64af1d0d088fa30e864897a43597026ee95f5e2590e79ac4055786795c60622'
'4c0928194248ce56deab7a1eeec78d4a3827d7e8fbceba142b46d4f9c8eed387')
options=(!strip !debug)
prepare() {
cd "${pkgname}-dev-${pkgver}"
sed -i 's|<i .\+git_pull.\+通过git拉取最新代码.\+></i>||' plugin/admin/app/view/index/dashboard.html
}
package() {
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -Dm644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -Dm644 "${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
cd "${pkgname}-dev-${pkgver}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
rm -rf .dockerignore docker runtime windows.* gg.sh LICENSE README.md
find . \( -iname ".git*" -o -iname "README.md" \) | sort | while read line; do rm -rf "$line"; done
find . -type f -exec install -Dm644 {} "${pkgdir}/srv/${pkgname}/"{} \;
chmod 755 "${pkgdir}/srv/${pkgname}/start.php"
}
|