summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD16
-rw-r--r--eagle-tunnel.install3
3 files changed, 15 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e785a416ee8..06b8e5f2591 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = eagle-tunnel
pkgver = 1.11.2
pkgrel = 1
url = https://github.com/eaglexiang/eagle.tunnel.dotnet.core
+ install = eagle-tunnel.install
arch = any
license = MIT
makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index dc8e8f919f2..5c4b1a03603 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,15 +10,21 @@ makedepends=('git' 'dotnet-sdk')
source=('git+https://github.com/eaglexiang/eagle.tunnel.dotnet.core.git')
sha256sums=('SKIP')
backup=('etc/eagle-tunnel.conf' 'etc/eagle-tunnel-smart.conf')
+install='eagle-tunnel.install'
-build() {
-cd "$srcdir/$_pkgname"
-git checkout dev
+prepare() {
+cd eagle.tunnel.dotnet.core
+git checkout -b dev origin/dev
+git submodule init
git submodule update
+}
+
+build() {
+cd eagle.tunnel.dotnet.core
./build.sh
}
package() {
-cd "$srcdir/$_pkgname"
-sudo ./install.sh
+cd eagle.tunnel.dotnet.core
+./install.sh ${pkgdir}
}
diff --git a/eagle-tunnel.install b/eagle-tunnel.install
new file mode 100644
index 00000000000..7b4be45f053
--- /dev/null
+++ b/eagle-tunnel.install
@@ -0,0 +1,3 @@
+post_install() {
+sudo systemctl daemon-reload
+}