2015-08-31 00:38:44 +00:00
|
|
|
# Maintainer: Spyros Stathopoulos <spystath@gmail.com>
|
|
|
|
|
|
|
|
pkgname=owfs
|
2018-03-06 00:30:48 +00:00
|
|
|
pkgver=3.2p1
|
|
|
|
pkgrel=1
|
2015-08-31 00:38:44 +00:00
|
|
|
pkgdesc="OWFS is an easy way to use the powerful 1-wire system of Dallas/Maxim."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.owfs.org/"
|
2011-03-28 01:53:51 +00:00
|
|
|
license=('GPL')
|
2016-06-29 00:23:59 +00:00
|
|
|
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
2018-03-06 00:30:48 +00:00
|
|
|
"systemd_journal.patch"
|
|
|
|
"owfs.conf")
|
2015-08-31 00:38:44 +00:00
|
|
|
depends=('avahi' 'fuse' 'perl')
|
|
|
|
makedepends=('swig')
|
2018-03-06 00:30:48 +00:00
|
|
|
sha1sums=('4ee76e686bec769acde5bfbda148a8693df244c6'
|
|
|
|
'ff13b0a3d56206e32cf0307042351298e3f27d2d'
|
|
|
|
'99a72935a8d2bdcd79a745983cda85fd5d3035f4')
|
2015-05-03 14:46:48 +00:00
|
|
|
|
|
|
|
prepare() {
|
2015-08-31 00:38:44 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2016-06-29 00:23:59 +00:00
|
|
|
sed -i -e 's|<libusb.h>|<libusb-1.0/libusb.h>|' "module/owlib/src/include/ow.h"
|
|
|
|
patch -p1 < ../systemd_journal.patch
|
2015-05-03 14:46:48 +00:00
|
|
|
}
|
2011-03-28 01:53:51 +00:00
|
|
|
|
|
|
|
build() {
|
2015-08-31 00:38:44 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--disable-owtcl \
|
|
|
|
--disable-owphp \
|
|
|
|
--disable-owpython \
|
|
|
|
--disable-zero \
|
|
|
|
--with-systemdunitdir=/usr/lib/systemd/system
|
2011-03-28 01:53:51 +00:00
|
|
|
|
2015-08-31 00:38:44 +00:00
|
|
|
make
|
2011-03-28 01:53:51 +00:00
|
|
|
}
|
2015-05-03 14:46:48 +00:00
|
|
|
|
|
|
|
package() {
|
2015-08-31 00:38:44 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2018-03-06 00:30:48 +00:00
|
|
|
|
|
|
|
install -Dm644 "${srcdir}/owfs.conf" "${pkgdir}/usr/lib/sysusers.d/owfs.conf"
|
2015-05-03 14:46:48 +00:00
|
|
|
}
|
|
|
|
|
2015-08-31 00:38:44 +00:00
|
|
|
# vim:ts=2:sw=2:et
|