diff options
| author | ruki <[email protected]> | 2020-02-16 12:04:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-16 12:04:15 +0800 |
| commit | 0b07ecdf2dc3ccf2b2d73bc2017656b396f35571 (patch) | |
| tree | c3efb8c47c702fe9005b368db884f61c583399b5 /scripts | |
| parent | 941da42aca3e9af717c4bd789e1c5dd0409170dd (diff) | |
improve to update urls
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/PKGBUILD | 13 | ||||
| -rwxr-xr-x | scripts/get.sh | 2 |
2 files changed, 4 insertions, 11 deletions
diff --git a/scripts/PKGBUILD b/scripts/PKGBUILD index 5163bb1b3..22f791e5d 100755 --- a/scripts/PKGBUILD +++ b/scripts/PKGBUILD @@ -3,13 +3,13 @@ pkgname=xmake pkgver=2.2.9 -pkgrel=1 +pkgrel=2 pkgdesc="A make-like build utility based on Lua" arch=('i686' 'x86_64') url="https://github.com/xmake-io/xmake" license=('Apache') makedepends=() -source=("$pkgname.tar.gz::https://github.com/xmake-io/xmake/releases/download/v${pkgver}/xmake-v${pkgver}.tar.gz") +source=("$pkgname.tar.gz::https://cdn.jsdelivr.net/gh/xmake-mirror/xmake-releases@${pkgver}/xmake-v${pkgver}.tar.gz") sha256sums=('7d7b4b368808c78cda4bcdd00a140cd8b4cab8f32c7b3c31aa22fdd08dde4940') build() { @@ -19,12 +19,5 @@ build() { package() { cd "$srcdir" - mkdir -p "${pkgdir}/usr/share" - cp -r "./xmake" "${pkgdir}/usr/share/" - install -Dm755 ./core/src/demo/demo.b "${pkgdir}/usr/share/xmake/xmake" - echo "#!/bin/bash -export XMAKE_PROGRAM_DIR=/usr/share/xmake -/usr/share/xmake/xmake \"\$@\" -" > ./xmake.sh - install -Dm755 "./xmake.sh" "${pkgdir}/usr/bin/xmake" + make install prefix="${pkgdir}/usr" } diff --git a/scripts/get.sh b/scripts/get.sh index 48161c2d1..424fe0cfd 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -162,7 +162,7 @@ elif [ 'x__run__' = "x$branch" ]; then pack=gz fi mkdir -p $projectdir - runfile_url="https://cdn.jsdelivr.net/gh/xmake-mirror/xmake-releases@master/xmake-$version.$pack.run" + runfile_url="https://cdn.jsdelivr.net/gh/xmake-mirror/xmake-releases@$version/xmake-$version.$pack.run" echo "downloading $runfile_url .." remote_get_content "$runfile_url" > $projectdir/xmake.run if [[ $? != 0 ]]; then |
