contrib: Add polybar-dwm-module PKGBUILD
Also remove other PKGBUILDs and rpm
This commit is contained in:
parent
56619b94a4
commit
6b54ea2773
@ -1,11 +1,11 @@
|
||||
# Maintainer: Patrick Ziegler <p.ziegler96@gmail.com>
|
||||
_pkgname=polybar
|
||||
pkgname="${_pkgname}-git"
|
||||
pkgver=3.5.2
|
||||
# Maintainer: Mihir Lad <mihirlad55 gmail>
|
||||
_pkgname=polybar-dwm-module
|
||||
pkgname="${_pkgname}"
|
||||
pkgver=3.5.2.r94.g5a29346
|
||||
pkgrel=1
|
||||
pkgdesc="A fast and easy-to-use status bar"
|
||||
pkgdesc="polybar fork with a dwm module"
|
||||
arch=("i686" "x86_64")
|
||||
url="https://github.com/polybar/polybar"
|
||||
url="https://github.com/mihirlad55/polybar-dwm-module"
|
||||
license=("MIT")
|
||||
depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
|
||||
"alsa-lib" "libpulse" "libmpdclient" "libnl" "jsoncpp" "curl")
|
@ -1,36 +0,0 @@
|
||||
# Maintainer: Patrick Ziegler <p.ziegler96@gmail.com>
|
||||
pkgname=polybar
|
||||
pkgver=3.5.2
|
||||
pkgrel=1
|
||||
pkgdesc="A fast and easy-to-use status bar"
|
||||
arch=("i686" "x86_64")
|
||||
url="https://github.com/polybar/polybar"
|
||||
license=("MIT")
|
||||
depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
|
||||
"alsa-lib" "libpulse" "libmpdclient" "libnl" "jsoncpp" "curl")
|
||||
optdepends=("i3-wm: i3 module support"
|
||||
"ttf-unifont: Font used in example config"
|
||||
"siji-git: Font used in example config"
|
||||
"xorg-fonts-misc: Font used in example config")
|
||||
makedepends=("cmake" "git" "python" "pkg-config" "python-sphinx" "i3-wm")
|
||||
conflicts=("polybar-git")
|
||||
install="${pkgname}.install"
|
||||
source=(${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
||||
sha256sums=('e411d9c091d0d4b5e8fbb44969e45c537d8c45900ecb3e90c49a248b885fe110')
|
||||
_dir="${pkgname}-${pkgver}"
|
||||
|
||||
prepare() {
|
||||
mkdir -p "${_dir}/build"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_dir}/build" || exit 1
|
||||
# Force cmake to use system python (to detect xcbgen)
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
|
||||
cmake --build .
|
||||
}
|
||||
|
||||
package() {
|
||||
cmake --build "${_dir}/build" --target install -- DESTDIR="${pkgdir}"
|
||||
install -Dm644 "${_dir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
post_install() {
|
||||
cat << EOF
|
||||
|
||||
Get started with the example configuration:
|
||||
|
||||
$ install -Dm644 /usr/share/doc/polybar/config \$HOME/.config/polybar/config
|
||||
$ polybar example
|
||||
|
||||
For more information, see https://github.com/polybar/polybar/wiki
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
[ "$(vercmp "$2" "2.5.1-1")" = "-1" ] || exit 0
|
||||
cat << EOF
|
||||
|
||||
The % suffix has been removed from percentage tokens.
|
||||
The suffix is instead added by the user, for example:
|
||||
|
||||
format-charging = Capacity %percentage%%
|
||||
|
||||
-- jaagr
|
||||
|
||||
EOF
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
#
|
||||
# spec file for package polybar
|
||||
# Initially created for openSUSE
|
||||
#
|
||||
|
||||
Name: polybar
|
||||
Version: 3.4.1
|
||||
Release: 0
|
||||
Summary: A fast and easy-to-use status bar
|
||||
License: MIT
|
||||
Group: System/GUI/Other
|
||||
URL: https://github.com/polybar/polybar
|
||||
Source: https://github.com/polybar/polybar/archive/%{version}.tar.gz
|
||||
BuildRequires: clang >= 3.4
|
||||
BuildRequires: cmake >= 3.1
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: xcb-util-image-devel
|
||||
BuildRequires: xcb-util-wm-devel
|
||||
# optional dependency
|
||||
BuildRequires: pkgconfig(alsa)
|
||||
# main dependency
|
||||
BuildRequires: pkgconfig(cairo)
|
||||
BuildRequires: pkgconfig(jsoncpp)
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRequires: pkgconfig(libpulse)
|
||||
BuildRequires: pkgconfig(python3)
|
||||
BuildRequires: pkgconfig(xcb)
|
||||
BuildRequires: pkgconfig(xcb-proto)
|
||||
BuildRequires: pkgconfig(xcb-util)
|
||||
%if 0%{?suse_version} <= 1315
|
||||
BuildRequires: i3-devel
|
||||
%else
|
||||
BuildRequires: i3-gaps-devel
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: libiw-devel
|
||||
%else
|
||||
BuildRequires: wireless-tools-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
A fast and easy-to-use status bar for tilling WM
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%cmake
|
||||
make
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%files
|
||||
%dir %{_datadir}/bash-completion/
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%dir %{_datadir}/doc/%{name}
|
||||
%dir %{_datadir}/zsh/
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}-msg
|
||||
%{_datadir}/doc/%{name}/config
|
||||
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||
%{_datadir}/bash-completion/completions/%{name}
|
||||
%{_datadir}/zsh/site-functions/_%{name}
|
||||
%{_datadir}/zsh/site-functions/_%{name}_msg
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user