testing/cwm: new aport

This commit is contained in:
Cág 2017-11-08 18:32:01 +00:00 committed by Leonardo Arena
parent 8c9aa20b2f
commit f22c97ead2
2 changed files with 42 additions and 0 deletions

29
testing/cwm/APKBUILD Normal file
View File

@ -0,0 +1,29 @@
# Contributor: Cág <ca6c@bitmessage.ch>
# Maintainer: Cág <ca6c@bitmessage.ch>
pkgname=cwm
pkgver=6.2
pkgrel=0
pkgdesc="A lightweight and efficient window manager for X11"
url="https://github.com/chneukirchen/cwm"
arch="all"
license="ISC"
depends=""
makedepends="libx11-dev libxft-dev libxrandr-dev byacc bsd-compat-headers"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/chneukirchen/$pkgname/archive/v$pkgver.tar.gz
menu-border.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir/" PREFIX=/usr install
}
sha512sums="aa892bd5b47de7332bee56b6980454b5064125b1d43571d16c1bd008b5a3ff99d9964934e5bfc372dd60ce512439ea45438ab7c29f70fb21131803dbc2d8b92f cwm-6.2.tar.gz
d83c250af671de4d3ba9fcec6b1f72dfa9c36962e392521315987088f04c76830aef49a91f8e63f7be3e3895e3bf8ef0cc874c8ebb9e6e541accd2fae70fe2b8 menu-border.patch"

View File

@ -0,0 +1,13 @@
diff --git a/conf.c b/conf.c
index d750c42..20a2da5 100644
--- a/conf.c
+++ b/conf.c
@@ -478,7 +478,7 @@ conf_screen(struct screen_ctx *sc)
sc->menu.win = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0, 1, 1,
Conf.bwidth,
- sc->xftcolor[CWM_COLOR_MENU_FG].pixel,
+ sc->xftcolor[CWM_COLOR_BORDER_ACTIVE].pixel,
sc->xftcolor[CWM_COLOR_MENU_BG].pixel);
sc->menu.xftdraw = XftDrawCreate(X_Dpy, sc->menu.win, visual, colormap);