makedeb
A fast and easy-to-use status bar
Click here to go back to the commit logs for polybar.
Hash: 032b4ff472caa400974bb94925ad5b8872e10abc
Message: Bugfix
diff --git a/PKGBUILD b/PKGBUILD
index 12d4685..ab2183d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,15 +7,21 @@ url="https://github.com/polybar/polybar"
license=("MIT")
makedepends=("cmake" "cmake-data" "libcairo2-dev" "libxcb1-dev" "libxcb-ewmh-dev" "libxcb-icccm4-dev" "libxcb-image0-dev" "libxcb-randr0-dev" "libxcb-util0-dev" "libxcb-xkb-dev" "pkg-config" "python-xcbgen" "xcb-proto" "libxcb-xrm-dev" "i3-wm" "libasound2-dev" "libmpdclient-dev" "libiw-dev" "libcurl4-openssl-dev" "libpulse-dev")
conflicts=("polybar-git")
-source=(${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('dfe602fc6ac96eac2ae0f5deb2f87e0dd1f81ea5d0f04ad3b3bfd71efd5cc038')
_dir="${pkgname}-${pkgver}"
+prepare() {
+ mkdir -p "$(_dir)/build"
+}
+
build() {
- wget $source;
- cd $pkgname;
+ cd ${_dir}/build || exit 1
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
+ cmake build .
}
package() {
- bash build.sh
+ cmake --build "${_dir}/build" --target install -- DESTDIR="${pkgdir}"
+ install -Dm644 "${_dir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}