diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 14 insertions, 28 deletions
@@ -1,24 +1,19 @@ pkgbase = anki-drive-sdk-git + pkgdesc = C SDK for message protocols and data parsing to communicate with Anki Drive vehicles pkgver = 0.3.0.r40.20180115 - pkgrel = 1 + pkgrel = 2 url = https://github.com/anki/drive-sdk arch = i686 arch = x86_64 license = Apache makedepends = cmake makedepends = gcc + depends = glib2 optdepends = bluez-utils: for command line tool btmgmt (hciconfig is deprecated) + conflicts = libankidrive + replaces = libankidrive source = anki-drive-sdk-git::git+https://github.com/anki/drive-sdk.git md5sums = SKIP pkgname = anki-drive-sdk-git - pkgdesc = C SDK for message protocols and data parsing to communicate with Anki Drive vehicles - depends = libankidrive - -pkgname = libankidrive-git - pkgdesc = C library of message protocols and data parsing to communicate with Anki Drive vehicles - depends = glib2 - provides = libankidrive - conflicts = libankidrive - replaces = libankidrive @@ -1,13 +1,17 @@ # Maintainer: Raimar Bühmann <raimar _at_ buehmann _dot_ de> -pkgname=('anki-drive-sdk-git' 'libankidrive-git') +pkgname=('anki-drive-sdk-git') +pkgdesc="C SDK for message protocols and data parsing to communicate with Anki Drive vehicles" pkgver=0.3.0.r40.20180115 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') url="https://github.com/anki/drive-sdk" license=('Apache') +depends=('glib2') optdepends=('bluez-utils: for command line tool btmgmt (hciconfig is deprecated)') makedepends=('cmake' 'gcc') +conflicts=('libankidrive') +replaces=('libankidrive') source=( "$pkgname::git+https://github.com/anki/drive-sdk.git" ) @@ -34,25 +38,12 @@ build() { cmake .. -DCMAKE_INSTALL_PREFIX= -DBUILD_EXAMPLES=ON } package() { - install -Dm644 "../../LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} -package_anki-drive-sdk-git() { - pkgdesc="C SDK for message protocols and data parsing to communicate with Anki Drive vehicles" - depends=('libankidrive') - cd "$pkgbase/build/examples" - make DESTDIR="${pkgdir}/usr" install - package -} -package_libankidrive-git() { - pkgdesc="C library of message protocols and data parsing to communicate with Anki Drive vehicles" - depends=('glib2') - conflicts=('libankidrive') - replaces=('libankidrive') - provides=('libankidrive') cd "$pkgbase/build/src" make DESTDIR="${pkgdir}/usr" install + cd "$pkgbase/build/examples" + make DESTDIR="${pkgdir}/usr" install install -Dm644 '../../include/ankidrive.h' "${pkgdir}/usr/include/ankidrive.h" install -dm755 "${pkgdir}/usr/include/ankidrive" cp -a ../../include/ankidrive/*.h "${pkgdir}/usr/include/ankidrive/." - package + install -Dm644 "../../LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |