From 710bd32c2670afab3be1f69a2cb62777fcdfe5ca Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Mon, 20 Jun 2016 17:28:21 +0200 Subject: [PATCH] feat(xbps): Template file for xbps package --- README.md | 6 +++--- contrib/lemonbuddy.xbps/template | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 contrib/lemonbuddy.xbps/template diff --git a/README.md b/README.md index 50d02e2f..2281d2d0 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,12 @@ Here are two screenshots showing you what it could look like (make sure to view ## Installation -### Arch Linux +### Arch Linux Install the AUR package [lemonbuddy-git](https://aur.archlinux.org/packages/lemonbuddy-git/) to get the latest version, or [lemonbuddy](https://aur.archlinux.org/packages/lemonbuddy/) for the latest stable release. -### Void Linux -A package will be written for XBPS so stay tuned. +### Void Linux +Install the XBPS package [lemonbuddy](https://raw.githubusercontent.com/jaagr/void-packages/lemonbuddy/srcpkgs/lemonbuddy/template) for the latest stable release. ### Dependencies: diff --git a/contrib/lemonbuddy.xbps/template b/contrib/lemonbuddy.xbps/template new file mode 100644 index 00000000..0f32ac12 --- /dev/null +++ b/contrib/lemonbuddy.xbps/template @@ -0,0 +1,37 @@ +# Template file for 'lemonbuddy' +pkgname=lemonbuddy +version=1.2.1 +revision=1 +_i3ipcpp_version=0.1.3 +_lemonbar_version=1.1 +build_style=cmake +hostmakedepends="clang pkg-config" +makedepends="libX11-devel libXrandr-devel boost-devel + $(vopt_if alsa "alsa-lib-devel") + $(vopt_if i3 "i3-devel i3ipc-glib-devel libsigc++-devel") + $(vopt_if mpd "libmpdclient-devel") + $(vopt_if network "wireless_tools-devel")" +short_desc="A fast and easy-to-use tool for Lemonbar" +maintainer="Michael Carlberg " +license="MIT" +homepage="https://github.com/jaagr/lemonbuddy" +distfiles=" + https://github.com/jaagr/lemonbuddy/archive/${version}.tar.gz + https://github.com/jaagr/i3ipcpp/archive/v${_i3ipcpp_version}.tar.gz + https://github.com/jaagr/bar/archive/v${_lemonbar_version}.tar.gz" +checksum=" + dfbeb74aaac49cb0f3c5c98466aadf2477c6a709025174e11e1da7ad7edafef4 + fb5ea31bf2d008065512f12ab9d9cc8304b2a4e6ba2ae93082df29712f372449 + d9073ecc3d2638804a723d47c74666ba3cd1c3771dfe254809de01ec5c428d4a" + +build_options="alsa i3 mpd network" +build_options_default="$build_options" + +post_extract() { + mv ../i3ipcpp-$_i3ipcpp_version contrib/i3ipcpp + mv ../bar-$_lemonbar_version contrib/lemonbar-sm-git +} + +post_install() { + vlicense LICENSE +}