Skip to content

Instantly share code, notes, and snippets.

@mono0x
Forked from vinipsmaker/PKGBUILD
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mono0x/cfcde1efb0890439ac7e to your computer and use it in GitHub Desktop.
Save mono0x/cfcde1efb0890439ac7e to your computer and use it in GitHub Desktop.
PKGBUILD for editorconfig-core-c (based on https://aur.archlinux.org/packages/editorconfig-core/)
# Maintainer: Erik van der Kolk <developer at smerik dot nl>
pkgname=editorconfig-core-c
pkgver=0.11.5
pkgrel=1
pkgdesc="EditorConfig core code written in C (for use by plugins supporting EditorConfig parsing)"
arch=('i686' 'x86_64')
url="https://github.com/editorconfig/${pkgname}"
license=('BSD')
depends=('glibc')
makedepends=('cmake')
changelog=CHANGELOG
source=("https://github.com/editorconfig/editorconfig-core-c/archive/v${pkgver}.tar.gz")
md5sums=('37593dbfd3557173233c27e76b973bb4')
build() {
cd "${srcdir}/editorconfig-core-c-${pkgver}"
msg "Starting make..."
cmake -D CMAKE_INSTALL_PREFIX=/usr .
make
}
package() {
cd "${srcdir}/editorconfig-core-c-${pkgver}"
make DESTDIR="${pkgdir}" install
msg "Including license..."
install -v -D -m 644 "${srcdir}/editorconfig-core-c-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment