diff options
| author | Yuval Adam <yuval@y3xz.com> | 2016-06-12 12:42:58 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2016-06-12 12:58:31 +0300 |
| commit | fa23ff39a7b5a5e0f75e1aee2ff9737c75a9e713 (patch) | |
| tree | f3e87d5782955e7148ff1c7eb6066d93ce11a895 /_wip/pigpio | |
| parent | e9235668059fece39c92e2e7a043f7dda81a24b7 (diff) | |
Initial pigpio package
Add pigpiod.service
Diffstat (limited to '_wip/pigpio')
| -rw-r--r-- | _wip/pigpio/.SRCINFO | 19 | ||||
| -rw-r--r-- | _wip/pigpio/PKGBUILD | 35 | ||||
| -rw-r--r-- | _wip/pigpio/make.patch | 29 | ||||
| -rw-r--r-- | _wip/pigpio/pigpiod.service | 13 |
4 files changed, 96 insertions, 0 deletions
diff --git a/_wip/pigpio/.SRCINFO b/_wip/pigpio/.SRCINFO new file mode 100644 index 0000000..55d9b11 --- /dev/null +++ b/_wip/pigpio/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Sun Jun 12 09:42:39 UTC 2016 +pkgbase = pigpio-git + pkgdesc = A C library for Raspberry Pi GPIO control with Python bindings + pkgver = 0.2.0 + pkgrel = 1 + url = http://abyz.co.uk/rpi/pigpio/index.html + arch = x86_64 + arch = i686 + arch = armv7h + license = custom + provides = pigpio + source = git+https://github.com/joan2937/pigpio + source = make.patch + sha256sums = SKIP + sha256sums = 03d516d874f29b2a949ee2a9da008fbb61513d17bfe55e22c4ffa248f7f6e3a2 + +pkgname = pigpio-git + diff --git a/_wip/pigpio/PKGBUILD b/_wip/pigpio/PKGBUILD new file mode 100644 index 0000000..5b01c1c --- /dev/null +++ b/_wip/pigpio/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Yuval Adam <yuval at y3xz dot com> PGP-Key: 271386AA2EB7672F + +pkgname=pigpio-git +pkgver=0.2.0 +pkgrel=1 +pkgdesc="A C library for Raspberry Pi GPIO control with Python bindings" +arch=('x86_64' 'i686' 'armv7h') +url="http://abyz.co.uk/rpi/pigpio/index.html" +license=('custom') +provides=('pigpio') +source=( + 'git+https://github.com/joan2937/pigpio' + 'make.patch' + 'pigpiod.service') +sha256sums=('SKIP' 'SKIP' 'SKIP') + +prepare () { + cd "${srcdir}/pigpio" + patch -p1 < ../../make.patch +} + +build () { + cd "${srcdir}/pigpio" + make +} + +package() { + cd "${srcdir}" + install -Dm644 pigpiod.service "${pkgdir}/usr/lib/systemd/system/pigpiod.service" + + cd "pigpio" + make install DESTDIR="${pkgdir}" +} + +# vim:set ts=2 sw=2 et: diff --git a/_wip/pigpio/make.patch b/_wip/pigpio/make.patch new file mode 100644 index 0000000..07acb78 --- /dev/null +++ b/_wip/pigpio/make.patch @@ -0,0 +1,29 @@ +diff --git a/Makefile b/Makefile +index 846daf0..f2f0402 100644 +--- a/Makefile ++++ b/Makefile +@@ -27,7 +27,7 @@ LL2 = -L. -lpigpiod_if -pthread -lrt + + LL3 = -L. -lpigpiod_if2 -pthread -lrt + +-prefix = /usr/local ++prefix = /usr + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + includedir = $(prefix)/include +@@ -83,13 +83,12 @@ install: $(ALL) + install -m 0755 -s pig2vcd $(DESTDIR)$(bindir) + install -m 0755 -s pigpiod $(DESTDIR)$(bindir) + install -m 0755 -s pigs $(DESTDIR)$(bindir) +- if which python2; then python2 setup.py install; fi +- if which python3; then python3 setup.py install; fi ++ if which python2; then python2 setup.py install --root=$(DESTDIR); fi ++ if which python3; then python3 setup.py install --root=$(DESTDIR); fi + install -m 0755 -d $(DESTDIR)$(mandir)/man1 + install -m 0644 *.1 $(DESTDIR)$(mandir)/man1 + install -m 0755 -d $(DESTDIR)$(mandir)/man3 + install -m 0644 *.3 $(DESTDIR)$(mandir)/man3 +- ldconfig + + uninstall: + rm -f $(DESTDIR)$(includedir)/pigpio.h diff --git a/_wip/pigpio/pigpiod.service b/_wip/pigpio/pigpiod.service new file mode 100644 index 0000000..7c0dd32 --- /dev/null +++ b/_wip/pigpio/pigpiod.service @@ -0,0 +1,13 @@ +[Unit] +Description=pigpio daemon +After=multi-user.target + +[Service] +Restart=on-failure +ProtectSystem=full +ProtectHome=true + +ExecStart=/usr/bin/pigpiod + +[Install] +WantedBy=multi-user.target |
