summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Depau2018-06-09 13:26:38 +0200
committerDavide Depau2018-06-09 13:26:38 +0200
commitf41e2dbe176a516848661861f31fddd00055e95b (patch)
tree181be4756aef6e101da97cbc0744224bf0a02762
parent9628382923cf84931fed0318abdce9f9abbb5eb1 (diff)
downloadaur-f41e2dbe176a516848661861f31fddd00055e95b.tar.gz
Switch from tarball to VCS version
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD44
2 files changed, 29 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3caf9a04c21..5acaf820aa1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,19 @@
-# Generated by mksrcinfo v8
-# Sat Nov 25 15:13:19 UTC 2017
-pkgbase = ofono
+pkgbase = ofono-git
pkgdesc = Infrastructure for building mobile telephony (GSM/UMTS) applications
- pkgver = 1.21
+ pkgver = 1.23.r52.g665e9c9a
pkgrel = 1
url = https://01.org/ofono
arch = x86_64
license = GPL2
depends = bluez
depends = dbus
- depends = modemmanager
depends = glib2
depends = udev
depends = mobile-broadband-provider-info
- source = https://www.kernel.org/pub/linux/network/ofono/ofono-1.21.tar.xz
- source = https://www.kernel.org/pub/linux/network/ofono/ofono-1.21.tar.sign
- sha256sums = a6b021cda0b444b772897cd637d5f455857fb5819b62c279a8302b44f9c7f2c3
+ provides = ofono
+ conflicts = ofono
+ source = ofono-git::git+https://git.kernel.org/pub/scm/network/ofono/ofono.git
sha256sums = SKIP
-pkgname = ofono
+pkgname = ofono-git
diff --git a/PKGBUILD b/PKGBUILD
index 4178204a862..134fe38effe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,42 @@
-# Maintainer: Jerome Leclanche <jerome@leclan.ch>
+# Maintainer: Davide Depau <davide@depau.eu>
+# Contributor: Jerome Leclanche <jerome@leclan.ch>
-pkgname=ofono
-pkgver=1.21
+pkgname=ofono-git
+pkgver=1.23.r52.g665e9c9a
pkgrel=1
pkgdesc="Infrastructure for building mobile telephony (GSM/UMTS) applications"
url="https://01.org/ofono"
arch=("x86_64")
license=("GPL2")
-depends=("bluez" "dbus" "modemmanager" "glib2" "udev" "mobile-broadband-provider-info")
-source=(
- "https://www.kernel.org/pub/linux/network/$pkgname/$pkgname-$pkgver.tar.xz"
- "https://www.kernel.org/pub/linux/network/$pkgname/$pkgname-$pkgver.tar.sign"
-)
-sha256sums=(
- "a6b021cda0b444b772897cd637d5f455857fb5819b62c279a8302b44f9c7f2c3"
- "SKIP"
-)
-validpgpkeys=(
- "E932D120BC2AEC444E558F0106CA9F5D1DCF2659" # Marcel Holtmann <marcel@holtmann.org>
-)
+provides=("ofono")
+conflicts=("ofono")
+depends=("bluez" "dbus" "glib2" "udev" "mobile-broadband-provider-info")
+source=("$pkgname::git+https://git.kernel.org/pub/scm/network/ofono/ofono.git")
+sha256sums=("SKIP")
+pkgver() {
+ cd "$pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$pkgname"
+ ./bootstrap
./configure \
--prefix=/usr \
--sysconfdir=/etc \
+ --localstatedir=/var \
--sbindir=/usr/bin \
- --disable-bluez4
-
+ --mandir=/usr/share/man \
+ --disable-bluez4 \
+ --enable-tools \
+ --enable-dundee
make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" install
- install -Dm644 "$srcdir/$pkgname-$pkgver/src/ofono.conf" "$pkgdir/etc/dbus-1/system.d/ofono.conf"
- install -Dm644 "$srcdir/$pkgname-$pkgver/src/ofono.service" "$pkgdir/usr/lib/systemd/system/ofono.service"
+ install -Dm644 "$srcdir/$pkgname/src/ofono.conf" "$pkgdir/etc/dbus-1/system.d/ofono.conf"
+ install -Dm644 "$srcdir/$pkgname/src/ofono.service" "$pkgdir/usr/lib/systemd/system/ofono.service"
}