diff options
author | 745275633 | 2017-07-21 10:26:34 +0800 |
---|---|---|
committer | 745275633 | 2017-07-21 10:26:34 +0800 |
commit | 0964cf0cfbf81e750243f2b3a822a136362723f0 (patch) | |
tree | 281d8e039ca336d3a66e5df8f28964abf2bda9ba /PKGBUILD | |
download | aur-0964cf0cfbf81e750243f2b3a822a136362723f0.tar.gz |
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fe3988878457 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: DATSD <dastudiodirector at gmail dot com> +_basename=xmake +pkgname=${_basename}-dev-git +pkgver=2.1.4.r447 +pkgrel=1 +pkgdesc='A make-like build utility based on Lua' +arch=('i686' 'x86_64') +url='http://xmake.io' +license=('Apache') +depends=('ccache') +makedepends=('git') +provides=("${_basename}=${pkgver}") +conflicts=("${_basename}") +source=("git+https://github.com/tboox/xmake.git#branch=dev") +sha256sums=('SKIP') + +pkgver() +{ + cd "${srcdir}/${_basename}" + git describe --long --tags | sed 's/\([^-]*\)-g.*/r\1/;s/-/./g' | cut -c2- +} + +build() +{ + cd "${srcdir}/${_basename}" + make build CC=gcc LD=gcc +} + +package() +{ + cd "${srcdir}/${_basename}" + make install prefix="${pkgdir}/usr" + cat > "${pkgdir}/usr/bin/xmake" <<EOF +#/!bin/bash +export XMAKE_PROGRAM_DIR=/usr/share/xmake +/usr/share/xmake/xmake "\$@" +EOF + chmod 755 "${pkgdir}/usr/bin/xmake" "${pkgdir}/usr/share/xmake/xmake" +} |