summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD18
2 files changed, 9 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bd99b771fba..e785a416ee8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,10 +5,13 @@ pkgbase = eagle-tunnel
url = https://github.com/eaglexiang/eagle.tunnel.dotnet.core
arch = any
license = MIT
+ makedepends = git
makedepends = dotnet-sdk
depends = dotnet-runtime
backup = etc/eagle-tunnel.conf
backup = etc/eagle-tunnel-smart.conf
+ source = git+https://github.com/eaglexiang/eagle.tunnel.dotnet.core.git
+ sha256sums = SKIP
pkgname = eagle-tunnel
diff --git a/PKGBUILD b/PKGBUILD
index 3811383e59d..dc8e8f919f2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,25 +6,19 @@ url="https://github.com/eaglexiang/eagle.tunnel.dotnet.core"
arch=('any')
license=('MIT')
depends=('dotnet-runtime')
-makedepends=('dotnet-sdk')
-conflicts=()
-replaces=()
+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')
-prepare() {
-git clone --recursive https://github.com/eaglexiang/eagle.tunnel.dotnet.core.git
-cd eagle.tunnel.dotnet.core
+build() {
+cd "$srcdir/$_pkgname"
git checkout dev
-git pull
git submodule update
-}
-
-build() {
-cd eagle.tunnel.dotnet.core
./build.sh
}
package() {
-cd eagle.tunnel.dotnet.core
+cd "$srcdir/$_pkgname"
sudo ./install.sh
}