summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD18
2 files changed, 14 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index aa14a18f607..eef7cff2bda 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gopanel
pkgdesc = A control panel that is written in Golang and is able to manage Caddy 2
- pkgver = 0.1.0
+ pkgver = 0.2.1
pkgrel = 1
url = https://gitlab.com/xiayesuifeng/gopanel
arch = x86_64
@@ -9,9 +9,9 @@ pkgbase = gopanel
makedepends = npm
depends = caddy
backup = etc/gopanel/config.json
- 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 = 9a1cdaf4987885fc8b4550f11705ecb212277ee53e9087c3cbaf15f17ff556d1
- sha256sums = 5363812d2579146f0704c4c8626aeeed11741d9e9d87df3b071d4eae2eb5c412
+ source = https://gitlab.com/xiayesuifeng/gopanel/-/archive/0.2.1/gopanel-0.2.1.tar.gz
+ source = https://gitlab.com/xiayesuifeng/gopanel-web/-/archive/0.2.1/gopanel-web-0.2.1.tar.gz
+ sha256sums = e92228570e2b4cb17a27c3366580cfdf036f5f7ee08c8e4f96f2f086c6b2b23b
+ sha256sums = f926091727f428aaebb8fa0cc6d0c87fab888a65d2c360ddeb541ae793e2df7f
pkgname = gopanel
diff --git a/PKGBUILD b/PKGBUILD
index 299fe8b226a..22dd0ffc486 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: XiaYeSuiFeng <xiayesuifeng@firerain.me>
pkgname=gopanel
-pkgver=0.1.0
+pkgver=0.2.1
pkgrel=1
pkgdesc='A control panel that is written in Golang and is able to manage Caddy 2'
arch=('x86_64')
@@ -10,16 +10,16 @@ backup=('etc/gopanel/config.json')
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=('9a1cdaf4987885fc8b4550f11705ecb212277ee53e9087c3cbaf15f17ff556d1'
- '5363812d2579146f0704c4c8626aeeed11741d9e9d87df3b071d4eae2eb5c412')
+ "https://gitlab.com/xiayesuifeng/${pkgname}-web/-/archive/${pkgver}/${pkgname}-web-${pkgver}.tar.gz")
+sha256sums=('e92228570e2b4cb17a27c3366580cfdf036f5f7ee08c8e4f96f2f086c6b2b23b'
+ 'f926091727f428aaebb8fa0cc6d0c87fab888a65d2c360ddeb541ae793e2df7f')
build() {
- cd ${srcdir}/gopanel-web-master
+ cd ${srcdir}/gopanel-web-${pkgver}
npm install
npm run build
- export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-s -w -mod=readonly -modcacherw"
cd ${srcdir}/${pkgname}-${pkgver}
go build -v
}
@@ -27,12 +27,12 @@ build() {
package() {
cd ${srcdir}/${pkgname}-${pkgver}
- mkdir -p "$pkgdir/etc/gopanel/app.conf.d"
- mkdir -p "$pkgdir/usr/share/gopanel"
+ install -d "$pkgdir/etc/gopanel/app.conf.d"
+ install -d "$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"
+ cp -rf ${srcdir}/gopanel-web-${pkgver}/build "${pkgdir}/usr/share/gopanel/web"
chmod -R 0644 "${pkgdir}/usr/share/gopanel/web"
}