Skip to content

Commit

Permalink
add libfakekey port
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaop committed Mar 19, 2017
1 parent 229efe3 commit c7cf899
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libfakekey/.footprint
@@ -0,0 +1,11 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/fakekey/
-rw-r--r-- root/root usr/include/fakekey/fakekey.h
drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/libfakekey.la
lrwxrwxrwx root/root usr/lib/libfakekey.so -> libfakekey.so.0.0.1
lrwxrwxrwx root/root usr/lib/libfakekey.so.0 -> libfakekey.so.0.0.1
-rwxr-xr-x root/root usr/lib/libfakekey.so.0.0.1
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/libfakekey.pc
2 changes: 2 additions & 0 deletions libfakekey/.md5sum
@@ -0,0 +1,2 @@
e7e7858aa7b2231c0aac6449d5e7fc31 libfakekey-0.1-ac.patch
83dbde4d77e8baf0176fe4291d8a2303 libfakekey-0.1.tar.bz2
28 changes: 28 additions & 0 deletions libfakekey/Pkgfile
@@ -0,0 +1,28 @@
# Description: Library for converting characters to X key-presses
# URL: https://www.yoctoproject.org/tools-resources/projects/matchbox
# Maintainer: Tsaop, leeroy at cock dot li
# Depends on: xorg-libxtst

name=libfakekey
version=0.1
release=1
source=(http://downloads.yoctoproject.org/releases/matchbox/$name/$version/$name-$version.tar.bz2
libfakekey-0.1-ac.patch)

build() {
cd $name-$version

# Fix -lX11 linking bug
patch -Np0 -i $SRC/libfakekey-0.1-ac.patch
sed -i -e 's/^fakekey_test_LDADD=/fakekey_test_LDADD=-lX11 /' \
tests/Makefile.am
sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac
autoreconf -vfi

./configure --prefix=/usr \
--libdir=/usr/lib \
--disable-static

make
make DESTDIR=$PKG install
}
24 changes: 24 additions & 0 deletions libfakekey/libfakekey-0.1-ac.patch
@@ -0,0 +1,24 @@
--- configure.ac.old 2011-05-22 14:59:45.801746472 +0100
+++ configure.ac 2011-05-22 15:02:59.437159981 +0100
@@ -14,16 +14,14 @@ AC_HEADER_STDC

dnl ------ libtool versioning -----------------------------------------------

-LT_CURRENT=0
-LT_REVISION=1
-AC_SUBST(LT_CURRENT)
-AC_SUBST(LT_REVISION)
-LT_AGE=0
+m4_define(LT_CURRENT, 0)
+m4_define(LT_REVISION, 1)
+m4_define(LT_AGE, 0)

-LT_VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE"
+LT_VERSION_INFO="LT_CURRENT():LT_REVISION():LT_AGE()"
AC_SUBST(LT_VERSION_INFO)

-LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
+LT_CURRENT_MINUS_AGE="m4_eval(LT_CURRENT() - LT_AGE())"
AC_SUBST(LT_CURRENT_MINUS_AGE)

dnl ------ Check for X Stuff ------------------------------------------------

0 comments on commit c7cf899

Please sign in to comment.