diff options
author | Conor Anderson | 2016-12-27 16:46:11 -0500 |
---|---|---|
committer | Conor Anderson | 2016-12-27 16:46:11 -0500 |
commit | 34ccbf594a1a341375927c447376e72e4e8696ad (patch) | |
tree | c8663ca76d710964cd31ada82a03ba10290bcc6e | |
download | aur-34ccbf594a1a341375927c447376e72e4e8696ad.tar.gz |
initial commit
-rwxr-xr-x | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rwxr-xr-x | PKGBUILD | 52 |
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100755 index 000000000000..14d5e36ec62d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = lighttable-git + pkgdesc = Next generation code editor and IDE with instant feedback. + pkgver = 0.8.1.r38.g868d6e1 + pkgrel = 1 + url = http://lighttable.com/ + arch = x86_64 + arch = i686 + license = MIT + makedepends = gendesk + makedepends = npm + makedepends = leiningen + depends = alsa-lib + depends = gconf + depends = gtk2 + depends = java-environment + depends = libnotify + depends = nodejs + depends = nss + depends = libxtst + provides = lighttable + conflicts = lighttable + source = git://github.com/LightTable/LightTable.git + sha256sums = SKIP + +pkgname = lighttable-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..577aca401a50 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.tar.xz +LightTable +src +pkg diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..990aa5220258 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Conor Anderson <conor@conr.ca> +pkgname=lighttable-git +_pkgname="${pkgname%-git}" +_name=LightTable +pkgver=0.8.1.r38.g868d6e1 +_pkgver=${pkgver/%.r*/} +pkgrel=1 +pkgdesc='Next generation code editor and IDE with instant feedback.' +arch=('x86_64' 'i686') +url='http://lighttable.com/' +license=('MIT') +conflicts=('lighttable') +depends=('alsa-lib' 'gconf' 'gtk2' 'java-environment' 'libnotify' 'nodejs' 'nss' 'libxtst') +makedepends=('gendesk' 'npm' 'leiningen') +provides=('lighttable') +source=("git://github.com/LightTable/LightTable.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_name}" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + gendesk -f -n --name="${_name}" --pkgname="${_pkgname}" --pkgdesc="${pkgdesc}" --exec="${_pkgname}" --categories="Development" +} + +build() { + cd "${srcdir}/${_name}" + script/build.sh +} + +package() { + # Place files + install -d "${pkgdir}/usr/lib/${_pkgname}" + cp -a "${srcdir}/${_name}/builds/${_pkgname}-${_pkgver}-linux/"* "${pkgdir}/usr/lib/${_pkgname}" + + # Symlink main binary + install -d "${pkgdir}/usr/bin" + ln -s "/usr/lib/${_pkgname}/${_name}" "${pkgdir}/usr/bin/${_pkgname}" + + # Place desktop entry and icon + desktop-file-install -m 644 --dir "${pkgdir}/usr/share/applications/" "${srcdir}/${_pkgname}.desktop" + install -Dm644 "${srcdir}/${_name}/deploy/core/img/lticon.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + + # Place license files + for license in "LICENSE" "LICENSES.chromium.html"; do + install -Dm644 "${pkgdir}/usr/lib/${_pkgname}/${license}" "${pkgdir}/usr/share/licenses/${_pkgname}/${license}" + rm "${pkgdir}/usr/lib/${_pkgname}/${license}" + done +} + |