From 6dd047c974779593fe7b178d4bfdb98105cb392d Mon Sep 17 00:00:00 2001 From: DirectorX Date: Sat, 30 Jul 2016 18:31:54 +0300 Subject: [PATCH] New package: xkblayout-state-1 --- srcpkgs/xkblayout-state/patches/make.patch | 36 ++++++++++++++++++++++ srcpkgs/xkblayout-state/template | 13 ++++++++ 2 files changed, 49 insertions(+) create mode 100644 srcpkgs/xkblayout-state/patches/make.patch create mode 100644 srcpkgs/xkblayout-state/template diff --git a/srcpkgs/xkblayout-state/patches/make.patch b/srcpkgs/xkblayout-state/patches/make.patch new file mode 100644 index 0000000000..20751601c5 --- /dev/null +++ b/srcpkgs/xkblayout-state/patches/make.patch @@ -0,0 +1,36 @@ +diff --git Makefile Makefile +index c32ed6b..fb2e7a3 100644 +--- Makefile ++++ Makefile +@@ -1,13 +1,22 @@ +-all: xkblayout-state ++PROG=xkblayout-state + +-XKeyboard.o: XKeyboard.cpp XKeyboard.h X11Exception.h +- g++ -c -Wall -O2 XKeyboard.cpp -o XKeyboard.o ++SRC = wrapper.cpp XKeyboard.cpp ++OBJS = ${SRC:.cpp=.o} + +-wrapper.o: wrapper.cpp XKeyboard.h +- g++ -c -Wall -O2 wrapper.cpp -o wrapper.o ++all: ${PROG} + +-xkblayout-state: XKeyboard.o wrapper.o +- g++ XKeyboard.o wrapper.o -lX11 -o xkblayout-state ++.cpp.o: ++ ${CXX} -c ${CXXFLAGS} $< ++ ++${PROG}: ${OBJS} ++ ${CXX} -o $@ ${OBJS} ${LDFLAGS} -lX11 + + clean: +- rm -f xkblayout-state XKeyboard.o wrapper.o ++ rm -f ${PROG} ${OBJS} ++ ++dist: ++ tar cfa xkblayout-state-v1b.tar.gz Makefile README.md wrapper.cpp X11Exception.h XKeyboard.cpp XKeyboard.h ++ ++install: ++ install -Dm755 ${PROG} ${DESTDIR}/usr/bin/${PROG} ++ + diff --git a/srcpkgs/xkblayout-state/template b/srcpkgs/xkblayout-state/template new file mode 100644 index 0000000000..f44aa1795c --- /dev/null +++ b/srcpkgs/xkblayout-state/template @@ -0,0 +1,13 @@ +# Template file for 'xkblayout-state' +pkgname=xkblayout-state +version=1 +revision=1 +license="GPL-2" +homepage="https://github.com/nonpop/xkblayout-state" +makedepends="libX11-devel" +build_style=gnu-makefile +short_desc="A small command-line program to get/set the current keyboard layout" +maintainer="DirectorX " +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=16d2d8e4597dba7c185845fb2c7a603029f6c632438a2d771ce862b84c78cde5 +