diff options
author | kpj | 2017-09-10 22:43:35 +0200 |
---|---|---|
committer | kpj | 2017-09-10 22:53:50 +0200 |
commit | ead73a8a33327ce0655809116bf3b5a6469c1fa0 (patch) | |
tree | 18c2628e9663582e075db0bd4df177281e286f2f | |
download | aur-ead73a8a33327ce0655809116bf3b5a6469c1fa0.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | cmake_path.diff | 16 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..34279953dc85 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = lapdog + pkgdesc = Take actions when specific devices appear/disappear from your LAN + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/ltworf/lapdog + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + depends = liboping + source = git+https://github.com/ltworf/lapdog.git + sha1sums = SKIP + +pkgname = lapdog + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9705915f0f3a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: kpj <kpjkpjkpjkpjkpjkpj@gmail.com> +# Contributor: kpj <kpjkpjkpjkpjkpjkpj@gmail.com> + +pkgname=lapdog +pkgver=1.0 +pkgrel=1 +pkgdesc='Take actions when specific devices appear/disappear from your LAN' +arch=('i686' 'x86_64') +url='https://github.com/ltworf/lapdog' +license=('GPL') +depends=('liboping') +makedepends=('cmake') +source=('git+https://github.com/ltworf/lapdog.git') +sha1sums=('SKIP') + +prepare() { + cd "${srcdir}/${pkgname}" + patch < ../../cmake_path.diff +} + +build() { + cd "${srcdir}" + mkdir -p _build && cd _build + + cmake -DCMAKE_INSTALL_PREFIX=/usr "../${pkgname}" + make +} + +package() { + cd "${srcdir}/_build" + make DESTDIR="${pkgdir}" install +} diff --git a/cmake_path.diff b/cmake_path.diff new file mode 100644 index 000000000000..332b390f2eb7 --- /dev/null +++ b/cmake_path.diff @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c2bbdfc..00c4ed3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,10 +34,10 @@ target_link_libraries(lapdog oping) + + SET(CMAKE_CXX_FLAGS "-std=c++0x") + +-install(TARGETS lapdog RUNTIME DESTINATION /usr/sbin/) ++install(TARGETS lapdog RUNTIME DESTINATION /usr/bin/) + install(PROGRAMS init/lapdog DESTINATION /etc/init.d/) + install(FILES doc/lapdog.conf DESTINATION /etc/ COMPONENT config) + install(FILES doc/device.conf DESTINATION /etc/lapdog/ COMPONENT config) +-install(FILES init/lapdog.service DESTINATION /lib/systemd/system/ COMPONENT config) ++install(FILES init/lapdog.service DESTINATION /usr/lib/systemd/system/ COMPONENT config) + install(FILES CHANGELOG DESTINATION /usr/share/doc/lapdog) |