diff --git a/ydotool/.SRCINFO b/ydotool/.SRCINFO new file mode 100644 index 0000000..670841f --- /dev/null +++ b/ydotool/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ydotool + pkgdesc = Generic command-line automation tool (no X!) + pkgver = 0.2.0 + pkgrel = 1 + url = https://github.com/ReimuNotMoe/ydotool + arch = x86_64 + license = MIT + makedepends = cmake + makedepends = ninja + makedepends = boost + makedepends = scdoc + depends = libevdevplus + depends = libuinputplus + depends = boost-libs + source = https://github.com/ReimuNotMoe/ydotool/archive/v0.2.0.tar.gz + sha256sums = 2311b003d2ff383f3348f17101f0df74f56616d530d66d0a014a52ba85a5dcf1 + +pkgname = ydotool + diff --git a/ydotool/.gitignore b/ydotool/.gitignore new file mode 100644 index 0000000..018a3de --- /dev/null +++ b/ydotool/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/ydotool/.gitrepo b/ydotool/.gitrepo new file mode 100644 index 0000000..6e1be5b --- /dev/null +++ b/ydotool/.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/ydotool + branch = master + commit = 35ccdc8fd314177d829a3a558cd285da6dbc0125 + parent = 8ba772bacca6ab58a787e573552067bb957f5f3e + method = merge + cmdver = 0.4.3 diff --git a/ydotool/PKGBUILD b/ydotool/PKGBUILD new file mode 100644 index 0000000..58cebc6 --- /dev/null +++ b/ydotool/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Eric Engestrom + +pkgname=ydotool +pkgver=0.2.0 +pkgrel=1 +pkgdesc="Generic command-line automation tool (no X!)" +arch=('x86_64') +depends=('libevdevplus' 'libuinputplus' 'boost-libs') +makedepends=('cmake' 'ninja' 'boost' 'scdoc') +url="https://github.com/ReimuNotMoe/ydotool" +license=('MIT') +source=("$url/archive/v$pkgver.tar.gz") +sha256sums=('2311b003d2ff383f3348f17101f0df74f56616d530d66d0a014a52ba85a5dcf1') + +build() { + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCXXOPTS_ENABLE_INSTALL=OFF \ + -G Ninja \ + -S "$pkgname-$pkgver" -B build + ninja -C build + + scdoc < "$pkgname-$pkgver"/manpage/ydotool.1.scd > "build/ydotool.1" + scdoc < "$pkgname-$pkgver"/manpage/ydotoold.8.scd > "build/ydotoold.8" +} + +package() { + #TODO: install is broken upstream + # DESTDIR="$pkgdir" ninja -C build install + + install -Dm755 build/ydotool "$pkgdir/usr/bin/ydotool" + install -Dm755 build/ydotoold "$pkgdir/usr/bin/ydotoold" + + install -Dm644 build/ydotool.1 "$pkgdir/usr/share/man/man1/ydotool.1" + install -Dm644 build/ydotoold.8 "$pkgdir/usr/share/man/man8/ydotoold.8" + + install -Dm644 "$pkgname-$pkgver"/Daemon/ydotool.service "$pkgdir/usr/lib/systemd/user/ydotool.service" +}