blob: 91ea097e56276741eb6135f9f91a487e2f54aa58 (
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
44
|
# Maintainer: devome <evinedeng@hotmail.com>
pkgname=iyuuplus
pkgver=8.2.56
pkgrel=1
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")
makedepends=("git")
source=("${pkgname}::git+${url}.git#tag=v${pkgver}"
"${pkgname}.service"
"${pkgname}.sysusers"
"${pkgname}.tmpfiles")
sha256sums=('931f418257cfaee685d54d2e8a2380f11775f6fa104c563e24adb5851f04a0f3'
'297b8392b19ef7f02a97a3d7032610bb7d509e4a48427b55ad35e2eb40ba8de2'
'e64af1d0d088fa30e864897a43597026ee95f5e2590e79ac4055786795c60622'
'4c0928194248ce56deab7a1eeec78d4a3827d7e8fbceba142b46d4f9c8eed387')
options=(!strip !debug)
prepare() {
cd "${pkgname}"
sed -i 's|<button .\+git_pull.\+通过git拉取最新代码.\+</button>||' plugin/admin/app/view/index/dashboard.html
sed -i "s|current_git_commit()|\"$(git rev-parse --short HEAD)\"|" plugin/admin/app/controller/IndexController.php
echo "${pkgver}" > .version
}
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}"
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"
}
|