25 lines
771 B
Bash
25 lines
771 B
Bash
# Template file for 'lsw'
|
|
pkgname=lsw
|
|
version=0.3
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libX11-devel libXext-devel"
|
|
short_desc="Lists the titles of all running X windows to stdout, similar to ls(1)"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="MIT"
|
|
homepage="http://tools.suckless.org/lsw"
|
|
distfiles="http://dl.suckless.org/tools/lsw-${version}.tar.gz"
|
|
checksum=0b3f3ce16eef060df6e0d90327ee82593dfd75281347908698747cfa3f8d0655
|
|
|
|
do_build() {
|
|
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
|
|
sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
|
|
sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk
|
|
make CC=$CC INCS="-I." LIBS="-lX11 -lXext -lcrypt" ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR=$DESTDIR install
|
|
vlicense LICENSE
|
|
}
|