summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-31 08:33:14 +0800
committerruki <[email protected]>2017-03-31 08:33:14 +0800
commitbca7be16bc36004e42f6b8f868c2214f981f0f09 (patch)
tree54d971985ab6b0ce454a0650fff30cb270512abb /scripts
parentb7c34b37aa2afc44e3d34efc45edae55dc73831d (diff)
modify PKGBUILD
Diffstat (limited to 'scripts')
-rw-r--r--scripts/PKGBUILD12
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/PKGBUILD b/scripts/PKGBUILD
index 90f7ddff5..54b00df46 100644
--- a/scripts/PKGBUILD
+++ b/scripts/PKGBUILD
@@ -19,13 +19,11 @@ build() {
package() {
cd "$srcdir/${pkgname}-${pkgver}"
- mkdir -p "${pkgdir}/usr/local/share"
- mkdir -p "${pkgdir}/usr/local/bin"
- cp -vr "./xmake" "${pkgdir}/usr/local/share/"
- install -Dvm755 `find ./core/bin/demo.pkg/bin/linux/ -name "demo.b"` "${pkgdir}/usr/local/share/xmake/xmake"
+ cp -vr "./xmake" "${pkgdir}/usr/share/"
+ install -Dvm755 `find ./core/bin/demo.pkg/bin/linux/ -name "demo.b"` "${pkgdir}/usr/share/xmake/xmake"
echo "#/!bin/bash
-export XMAKE_PROGRAM_DIR=/usr/local/share/xmake
-/usr/local/share/xmake/xmake \"\$@\"
+export XMAKE_PROGRAM_DIR=/usr/share/xmake
+/usr/share/xmake/xmake \"\$@\"
" > ./xmake.sh
- install "./xmake.sh" "${pkgdir}/usr/local/bin/xmake"
+ install "./xmake.sh" "${pkgdir}/usr/bin/xmake"
}