diff --git a/aur/owfs/PKGBUILD b/aur/owfs/PKGBUILD index f8299f61c..3829eb7e3 100644 --- a/aur/owfs/PKGBUILD +++ b/aur/owfs/PKGBUILD @@ -1,8 +1,8 @@ # Contributor: plut0nium # tzervo pkgname="owfs" -pkgver=2.9p7 -pkgrel=0 +pkgver=3.1p0 +pkgrel=1 pkgdesc="An easy way to use the powerful 1-wire system of Dallas/Maxim." arch=('any') url="http://www.owfs.org" @@ -19,14 +19,26 @@ replaces=() backup=() options=() install= -source=(http://downloads.sourceforge.net/sourceforge/owfs/$pkgname-$pkgver.tar.gz) +source=("http://downloads.sourceforge.net/sourceforge/owfs/$pkgname-$pkgver.tar.gz" "fix-libusb-includes.patch") noextract=() -md5sums=('47808d820e6340af58ec05cfe8e220c6') +md5sums=('3d8919af078ae8c9171e5713a1789195' + 'f23d0571e00fb869c2e5e0602ed6f628') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 -i ../../fix-libusb-includes.patch +} build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr --with-python="/usr/bin/python2" --with-pythonconfig="/usr/bin/python2-config" - make - make DESTDIR="$pkgdir" install + autoreconf && \ + ./configure --disable-swig --disable-owperl --prefix=/usr --with-python="/usr/bin/python2" --with-pythonconfig="/usr/bin/python2-config" + make } + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} + diff --git a/aur/owfs/fix-libusb-includes.patch b/aur/owfs/fix-libusb-includes.patch new file mode 100644 index 000000000..d4d829e2e --- /dev/null +++ b/aur/owfs/fix-libusb-includes.patch @@ -0,0 +1,22 @@ +diff -ruN owfs-orig/module/owshell/src/c/Makefile.am owfs/module/owshell/src/c/Makefile.am +--- owfs-orig/module/owshell/src/c/Makefile.am 2015-01-11 03:31:32.000000000 +0200 ++++ owfs/module/owshell/src/c/Makefile.am 2015-03-23 18:47:03.211445494 +0200 +@@ -41,6 +41,7 @@ + -Wcast-align \ + -Wstrict-prototypes \ + -Wredundant-decls \ ++ ${LIBUSB_CFLAGS} \ + ${EXTRACFLAGS} + + LDADD = ${LD_EXTRALIBS} ${OSLIBS} +diff -ruN owfs-orig/module/owtcl/Makefile.am owfs/module/owtcl/Makefile.am +--- owfs-orig/module/owtcl/Makefile.am 2015-01-11 03:31:32.000000000 +0200 ++++ owfs/module/owtcl/Makefile.am 2015-03-23 18:46:52.681151547 +0200 +@@ -39,6 +39,7 @@ + -Wcast-align \ + -Wstrict-prototypes \ + -Wredundant-decls \ ++ ${LIBUSB_CFLAGS} \ + ${EXTRACFLAGS} \ + ${PTHREAD_CFLAGS} \ + $(TCL_DEFS) \