diff --git a/libuinputplus/.SRCINFO b/libuinputplus/.SRCINFO new file mode 100644 index 0000000..d2297d8 --- /dev/null +++ b/libuinputplus/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = libuinputplus + pkgdesc = Easy-to-use uinput library in C++ + pkgver = 0.1.4 + pkgrel = 2 + url = https://github.com/YukiWorkshop/libuInputPlus + arch = x86_64 + license = MIT + makedepends = cmake + makedepends = ninja + source = https://github.com/YukiWorkshop/libuInputPlus/archive/v0.1.4.tar.gz + source = https://github.com/YukiWorkshop/libuInputPlus/commit/70007571963792487064f4b57bdbe5694283ef97.patch + sha256sums = a537e156d11ad00c643b93cbd9b712d3ec9d0ae8e40731ff763fe9a6ffe97458 + sha256sums = c7476024f241c4e80116c72ebd85f0b722152beef2e96b402702ea80f7c61666 + +pkgname = libuinputplus + diff --git a/libuinputplus/.gitignore b/libuinputplus/.gitignore new file mode 100644 index 0000000..018a3de --- /dev/null +++ b/libuinputplus/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/libuinputplus/.gitrepo b/libuinputplus/.gitrepo new file mode 100644 index 0000000..eb4b5d5 --- /dev/null +++ b/libuinputplus/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/libuinputplus + branch = master + commit = f7daeef4f83516f19fbdae5bddbcc5fcb6a13369 + parent = f9bee86712f46d00ba72d76b89236a3661a2a4ff + method = merge + cmdver = 0.4.3 diff --git a/libuinputplus/PKGBUILD b/libuinputplus/PKGBUILD new file mode 100644 index 0000000..c21525d --- /dev/null +++ b/libuinputplus/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Eric Engestrom + +pkgname=libuinputplus +pkgver=0.1.4 +pkgrel=2 +pkgdesc="Easy-to-use uinput library in C++" +url="https://github.com/YukiWorkshop/libuInputPlus" +license=('MIT') +arch=('x86_64') +source=("$url/archive/v$pkgver.tar.gz" + "$url/commit/70007571963792487064f4b57bdbe5694283ef97.patch") +sha256sums=('a537e156d11ad00c643b93cbd9b712d3ec9d0ae8e40731ff763fe9a6ffe97458' + 'c7476024f241c4e80116c72ebd85f0b722152beef2e96b402702ea80f7c61666') +makedepends=('cmake' 'ninja') + +prepare() { + cd "libuInputPlus-$pkgver" + patch -sp1 -i ../70007571963792487064f4b57bdbe5694283ef97.patch +} + +build() { + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -G Ninja \ + -S "libuInputPlus-$pkgver" -B build + ninja -C build +} + +package() { + DESTDIR="$pkgdir" ninja -C build install +}