PKGBUILDs/aur/owfs/PKGBUILD

45 lines
1.1 KiB
Bash
Raw Normal View History

2011-03-28 01:53:51 +00:00
# Contributor: plut0nium <charles(DOT)fourneau(AT)gmail(DOT)com >
2012-12-03 23:28:26 +00:00
# tzervo <tzervo@gmail.com>
2012-03-12 21:05:59 +00:00
pkgname="owfs"
2015-05-03 14:46:48 +00:00
pkgver=3.1p0
pkgrel=1
2011-06-09 21:51:42 +00:00
pkgdesc="An easy way to use the powerful 1-wire system of Dallas/Maxim."
2011-03-28 01:53:51 +00:00
arch=('any')
url="http://www.owfs.org"
license=('GPL')
2011-06-09 21:51:42 +00:00
groups=()
# Dependencies are not mandatory to build owserver, but:
# - fuse is needed for owfs
# - swig is needed for scripting languages bindings (perl, python...)
2014-11-09 05:23:08 +00:00
depends=('fuse' 'swig' 'python2')
makedepends=()
provides=('owfs')
conflicts=('owfs')
2011-06-09 21:51:42 +00:00
replaces=()
backup=()
options=()
install=
2015-05-03 14:46:48 +00:00
source=("http://downloads.sourceforge.net/sourceforge/owfs/$pkgname-$pkgver.tar.gz" "fix-libusb-includes.patch")
2011-06-09 21:51:42 +00:00
noextract=()
2015-05-03 14:46:48 +00:00
md5sums=('3d8919af078ae8c9171e5713a1789195'
'f23d0571e00fb869c2e5e0602ed6f628')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../../fix-libusb-includes.patch
}
2011-03-28 01:53:51 +00:00
build() {
2015-05-03 14:46:48 +00:00
cd "$srcdir/$pkgname-$pkgver"
2011-03-28 01:53:51 +00:00
2015-05-03 14:46:48 +00:00
autoreconf && \
./configure --disable-swig --disable-owperl --prefix=/usr --with-python="/usr/bin/python2" --with-pythonconfig="/usr/bin/python2-config"
make
2011-03-28 01:53:51 +00:00
}
2015-05-03 14:46:48 +00:00
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}