Skip to content

Commit

Permalink
numpy packages 1.12.0
Browse files Browse the repository at this point in the history
usb_modeswitch patched to exclude certain flip-phones
  • Loading branch information
demmm committed Jan 16, 2017
1 parent ef375ec commit 16594d0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
4 changes: 2 additions & 2 deletions python2-numpy/PKGBUILD
@@ -1,6 +1,6 @@

pkgname=python2-numpy
pkgver=1.11.3
pkgver=1.12.0
pkgrel=1
pkgdesc="Scientific tools for Python"
arch=('x86_64')
Expand All @@ -9,7 +9,7 @@ url="http://www.numpy.org/"
depends=('lapack' 'python2-nose')
provides=('python-numeric')
source=("https://github.com/numpy/numpy/releases/download/v${pkgver}/numpy-${pkgver}.tar.gz")
md5sums=('b8a9dec6901c046edaea706bad1448b1')
md5sums=('07672c5061fc9c3d258eb8802b68b1a2')

build() {
cd numpy-${pkgver}
Expand Down
4 changes: 2 additions & 2 deletions python3-numpy/PKGBUILD
@@ -1,14 +1,14 @@

pkgname=python3-numpy
pkgver=1.11.3
pkgver=1.12.0
pkgrel=1
pkgdesc="Scientific tools for Python"
arch=('x86_64')
license=('custom')
url="http://www.numpy.org/"
depends=('lapack' 'python3-nose')
source=("https://github.com/numpy/numpy/releases/download/v${pkgver}/numpy-${pkgver}.tar.gz")
md5sums=('b8a9dec6901c046edaea706bad1448b1')
md5sums=('07672c5061fc9c3d258eb8802b68b1a2')

build() {
cd numpy-${pkgver}
Expand Down
11 changes: 11 additions & 0 deletions usb_modeswitch/40-usb_modeswitch.diff
@@ -0,0 +1,11 @@
--- a/usb-modeswitch-data-20160612/40-usb_modeswitch.rules 2016-06-12 15:17:38.000000000 -0400
+++ b/40-usb_modeswitch.rules 2017-01-16 10:58:36.866832060 -0500
@@ -372,7 +372,7 @@
ATTR{idVendor}=="0df7", ATTR{idProduct}=="0800", RUN+="usb_modeswitch '%b/%k'"

# MediaTek/Medion S4222 and probably others, MediaTek MT6276M and others
-ATTR{idVendor}=="0e8d", ATTR{idProduct}=="0002", RUN+="usb_modeswitch '%b/%k'"
+# ATTR{idVendor}=="0e8d", ATTR{idProduct}=="0002", RUN+="usb_modeswitch '%b/%k'"

# MediaTek Wimax USB Card
ATTR{idVendor}=="0e8d", ATTR{idProduct}=="7109", RUN+="usb_modeswitch '%b/%k'"
14 changes: 11 additions & 3 deletions usb_modeswitch/PKGBUILD
@@ -1,7 +1,7 @@

pkgname=usb_modeswitch
pkgver=2.4.0
pkgrel=2
pkgrel=3
_pkgdata=20160612
pkgdesc="Activating switchable USB devices on Linux."
arch=('x86_64')
Expand All @@ -13,11 +13,19 @@ groups=('system')
backup=("etc/${pkgname}.conf")
source=("http://www.draisberghof.de/${pkgname}/usb-modeswitch-${pkgver}.tar.bz2"
"http://www.draisberghof.de/${pkgname}/usb-modeswitch-data-${_pkgdata}.tar.bz2"
"usb-modeswitch-${pkgver}-device_reference.txt::http://www.draisberghof.de/${pkgname}/device_reference.txt")
"usb-modeswitch-${pkgver}-device_reference.txt::http://www.draisberghof.de/${pkgname}/device_reference.txt"
'40-usb_modeswitch.diff')
md5sums=('6e1640db47768bb9012f91b7593116ef'
'e3d30774dc594131ce3398b1e669d427'
'080bac4145f002466b1cbd1b973bba44')
'080bac4145f002466b1cbd1b973bba44'
'6cb86a6d949e0954bb48e950c7263bf9')

prepare() {
cd usb-modeswitch-data-${_pkgdata}
# exclude flip phones, see https://forum.kaosx.us/d/1790-kaos-and-doro-626/12
patch -p1 -i ${srcdir}/40-usb_modeswitch.diff
}

build() {
cd usb-modeswitch-${pkgver}/
make clean
Expand Down

0 comments on commit 16594d0

Please sign in to comment.