From 55ac6bc73296576f26732d769e04ee535aa56ae2 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 20 May 2016 09:58:30 +0200 Subject: [PATCH] feat(build): Add PKGBUILD --- contrib/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 contrib/PKGBUILD diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD new file mode 100644 index 00000000..098b9400 --- /dev/null +++ b/contrib/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Michael Carlberg +pkgname=lemonbuddy +pkgver=0.1.0 +pkgrel=1 +pkgdesc="A fast and easy-to-use tool for Lemonbar." +arch=('i686' 'x86_64') +url="https://github.com/jaagr/lemonbuddy" +license=('MIT') +groups=() +depends=('sh' 'alsa-lib' 'libmpdclient' 'libxrandr') +optdepends=('lemonbar-sm-git') +makedepends=('cmake' 'pkg-config' 'clang' 'glibc' + 'boost-libs' 'libx11' 'wireless_tools' + 'alsa-lib' 'libsigc++' 'i3-wm') +source=("git+https://github.com/jaagr/lemonbuddy.git#tag=0.1.0") +md5sums=('SKIP') + +build() { + cd "$srcdir/$pkgname" || exit + git submodule update --init --recursive + mkdir build + cd build || exit + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + make +} + +package() { + cd "$srcdir/$pkgname/build" || exit + make DESTDIR="$pkgdir/" install + cd .. + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}