PKGBUILDs/aur/owfs/PKGBUILD

40 lines
1,019 B
Bash
Raw Normal View History

2015-08-31 00:38:44 +00:00
# Maintainer: Spyros Stathopoulos <spystath@gmail.com>
pkgname=owfs
2015-05-03 14:46:48 +00:00
pkgver=3.1p0
2015-08-31 00:38:44 +00:00
pkgrel=2
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')
2015-08-31 00:38:44 +00:00
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
depends=('avahi' 'fuse' 'perl')
makedepends=('swig')
sha1sums=('f82bf91e4f78a667c09a44d486139f1359f0950c')
2015-05-03 14:46:48 +00:00
prepare() {
2015-08-31 00:38:44 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i -e 's|<libusb.h>|<libusb-1.0/libusb.h>|' "module/owlib/src/include/ow.h"
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
2015-05-03 14:46:48 +00:00
}
2015-08-31 00:38:44 +00:00
# vim:ts=2:sw=2:et