diff options
author | Augustin deMayo | 2018-01-18 17:01:11 -0600 |
---|---|---|
committer | Augustin deMayo | 2018-01-18 17:01:11 -0600 |
commit | 3ce6b65539957c591af6f9d8967f0b643a370940 (patch) | |
tree | f29458d7e646ef06f4a788efd206a3217fba0c4a /PKGBUILD | |
download | aur-3ce6b65539957c591af6f9d8967f0b643a370940.tar.gz |
initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f34f0d0c06e6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Augustin deMayo <gus.demayo@gmail.com> +# Contributor: Maxime Gauduin <alucryd@archlinux.org> + +pkgname=pantheon-code-git +pkgver=r2477.0a016808 +pkgrel=1 +pkgdesc='The Pantheon Text Editor' +arch=('i686' 'x86_64') +url='https://github.com/elementary/code' +license=('GPL3') +groups=('pantheon-unstable') +depends=('cairo' 'glib2' 'glibc' 'gtk3' 'gtksourceview3' 'libgee' 'libpeas' + 'libsoup' 'pango' 'zeitgeist' + 'libgranite.so') +makedepends=('cmake' 'git' 'gobject-introspection' 'granite' + 'intltool' 'vala' 'vte3' 'webkit2gtk') +provides=('pantheon-code') +source=('pantheon-code::git+https://github.com/elementary/code.git') +sha256sums=('SKIP') + +pkgver() { + cd pantheon-code + echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +prepare() { + cd pantheon-code + + if [[ -d build ]]; then + rm -rf build + fi + + mkdir build +} + +build() { + cd pantheon-code/build + + cmake .. \ + -DCMAKE_BUILD_TYPE='Release' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_INSTALL_LIBDIR='/usr/lib' \ + -DGSETTINGS_COMPILE='OFF' + make +} + +package() { + cd pantheon-code/build + make DESTDIR="${pkgdir}" install +} + +# vim: ts=2 sw=2 et: |