summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics@felics-tablet2018-02-09 23:15:12 +0100
committerfelics@felics-tablet2018-02-09 23:15:12 +0100
commite365abddc91bb4f9be30e05bbcce3b867163c1d8 (patch)
tree9c5697ed233a53406624eb0e449cfddc5e0ed326
downloadaur-e365abddc91bb4f9be30e05bbcce3b867163c1d8.tar.gz
Initial commit.
-rw-r--r--.SRCINFO30
-rw-r--r--001-sbin-fix.patch8
-rw-r--r--PKGBUILD57
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dcd7d5999d6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = uqmi-git
+ pkgdesc = OpenWrt QMI modem utility
+ pkgver = r110.8ceeab6
+ pkgrel = 2
+ url = https://git.openwrt.org/project/uqmi.git
+ arch = i686
+ arch = x86_64
+ arch = armv5te
+ arch = armv6
+ arch = armv7
+ arch = armv8
+ arch = aarch64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ makedepends = gcc
+ makedepends = make
+ makedepends = patch
+ makedepends = pkg-config
+ depends = json-c
+ depends = libubox
+ provides = uqmi=r110.8ceeab6
+ conflicts = uqmi
+ source = uqmi::git+git://git.openwrt.org/project/uqmi.git
+ source = 001-sbin-fix.patch
+ sha256sums = SKIP
+ sha256sums = 1f0b8f7c17c8bc3cd099e27573839cb6ef105ed97dda81d808eb899c33e883c8
+
+pkgname = uqmi-git
+
diff --git a/001-sbin-fix.patch b/001-sbin-fix.patch
new file mode 100644
index 00000000000..8a5703673ed
--- /dev/null
+++ b/001-sbin-fix.patch
@@ -0,0 +1,8 @@
+diff -U1 -ra uqmi.orig/CMakeLists.txt uqmi/CMakeLists.txt
+--- uqmi.orig/CMakeLists.txt 2018-02-09 23:03:34.772414540 +0100
++++ uqmi/CMakeLists.txt 2018-02-09 23:04:28.329744981 +0100
+@@ -69,3 +69,3 @@
+ INSTALL(TARGETS uqmi
+- RUNTIME DESTINATION sbin
++ RUNTIME DESTINATION bin
+ )
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..80c817880a2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: dreieck
+# Contributor (umbim-git): Jared Baldridge <jrb@expunge.us>
+
+_pkgname=uqmi
+pkgname="${_pkgname}-git"
+_gitname="${_pkgname}"
+pkgver=r110.8ceeab6
+pkgrel=2
+pkgdesc='OpenWrt QMI modem utility'
+url='https://git.openwrt.org/project/uqmi.git'
+arch=('i686' 'x86_64' 'armv5te' 'armv6' 'armv7' 'armv8' 'aarch64')
+license=('GPL2')
+depends=(
+ 'json-c'
+ 'libubox'
+)
+makedepends=(
+ 'git'
+ 'cmake'
+ 'gcc'
+ 'make'
+ 'patch'
+ 'pkg-config'
+)
+conflicts=("${_pkgname}")
+provides=("${_pkgname}=${pkgver}")
+source=(
+ "${_gitname}::git+git://git.openwrt.org/project/${_gitname}.git"
+ '001-sbin-fix.patch'
+)
+sha256sums=(
+ 'SKIP'
+ '1f0b8f7c17c8bc3cd099e27573839cb6ef105ed97dda81d808eb899c33e883c8'
+)
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$_gitname"
+ patch -p1 -i "$srcdir/001-sbin-fix.patch"
+}
+
+
+build() {
+ cd "$srcdir/$_gitname"
+ cmake CMakeLists.txt \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ make DESTDIR="$pkgdir" install
+}