summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxiayesuifeng2022-03-07 04:00:43 +0800
committerxiayesuifeng2022-03-07 04:00:43 +0800
commita402078b9fc8393159e99b0d31eaa3f887f25d2f (patch)
tree3f90444d698b8e9dd4488cafdb74021ced6d41e7
parent1dbcb9dadbb20d39b5e920dc6087ef868778ed18 (diff)
downloadaur-a402078b9fc8393159e99b0d31eaa3f887f25d2f.tar.gz
update version to 0.1.0
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD13
2 files changed, 13 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5faf3a7007b..aa14a18f607 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gopanel
pkgdesc = A control panel that is written in Golang and is able to manage Caddy 2
- pkgver = 0.0.1
- pkgrel = 2
+ pkgver = 0.1.0
+ pkgrel = 1
url = https://gitlab.com/xiayesuifeng/gopanel
arch = x86_64
license = GPLv3
@@ -9,9 +9,9 @@ pkgbase = gopanel
makedepends = npm
depends = caddy
backup = etc/gopanel/config.json
- source = https://gitlab.com/xiayesuifeng/gopanel/-/archive/0.0.1/gopanel-0.0.1.tar.gz
+ source = https://gitlab.com/xiayesuifeng/gopanel/-/archive/0.1.0/gopanel-0.1.0.tar.gz
source = gopanel-web.tar.gz::https://gitlab.com/xiayesuifeng/gopanel-web/-/archive/master/gopanel-web-master.tar.gz
- sha256sums = 728621f83072b6fde3f57fe6e99f7aabda7d22ba040f15348730ad01fd851411
- sha256sums = SKIP
+ sha256sums = 9a1cdaf4987885fc8b4550f11705ecb212277ee53e9087c3cbaf15f17ff556d1
+ sha256sums = 5363812d2579146f0704c4c8626aeeed11741d9e9d87df3b071d4eae2eb5c412
pkgname = gopanel
diff --git a/PKGBUILD b/PKGBUILD
index 4c675286435..299fe8b226a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: XiaYeSuiFeng <xiayesuifeng@firerain.me>
pkgname=gopanel
-pkgver=0.0.1
-pkgrel=2
+pkgver=0.1.0
+pkgrel=1
pkgdesc='A control panel that is written in Golang and is able to manage Caddy 2'
arch=('x86_64')
license=('GPLv3')
@@ -11,13 +11,15 @@ depends=('caddy')
makedepends=('go' 'npm')
source=("https://gitlab.com/xiayesuifeng/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
"gopanel-web.tar.gz::https://gitlab.com/xiayesuifeng/${pkgname}-web/-/archive/master/gopanel-web-master.tar.gz")
-sha256sums=('728621f83072b6fde3f57fe6e99f7aabda7d22ba040f15348730ad01fd851411'
- 'SKIP')
+sha256sums=('9a1cdaf4987885fc8b4550f11705ecb212277ee53e9087c3cbaf15f17ff556d1'
+ '5363812d2579146f0704c4c8626aeeed11741d9e9d87df3b071d4eae2eb5c412')
build() {
cd ${srcdir}/gopanel-web-master
npm install
npm run build
+
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd ${srcdir}/${pkgname}-${pkgver}
go build -v
}
@@ -26,10 +28,11 @@ package() {
cd ${srcdir}/${pkgname}-${pkgver}
mkdir -p "$pkgdir/etc/gopanel/app.conf.d"
- mkdir -p "$pkgdir/usr/share/gopanel/web"
+ mkdir -p "$pkgdir/usr/share/gopanel"
install -D -m 0755 gopanel "$pkgdir/usr/bin/gopanel"
install -D -m 0644 systemd/gopanel.service "$pkgdir/usr/lib/systemd/system/gopanel.service"
install -D -m 0644 config.default.json "$pkgdir/etc/gopanel/config.json"
+ sed -i 's|http://localhost:2019|unix//run/caddy/admin.socket|g' "$pkgdir/etc/gopanel/config.json"
cp -rf ${srcdir}/gopanel-web-master/build "${pkgdir}/usr/share/gopanel/web"
chmod -R 0644 "${pkgdir}/usr/share/gopanel/web"
}