aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2020-07-13 08:12:47 +0300
committerLeo <thinkabit.ukim@gmail.com>2020-07-13 13:05:00 +0000
commite3ec22876071cfd7e3d1454d7fd2c1c2e35865b5 (patch)
treefc938e80d301633e3af74dce46e4230d4228b518
parent1cfcd55efdd031f28109c403dc79b7b87e8cca44 (diff)
downloadaports-e3ec22876071cfd7e3d1454d7fd2c1c2e35865b5.tar.gz
aports-e3ec22876071cfd7e3d1454d7fd2c1c2e35865b5.tar.bz2
aports-e3ec22876071cfd7e3d1454d7fd2c1c2e35865b5.tar.xz
community/libftdi1: upgrade to 1.5
-rw-r--r--community/libftdi1/APKBUILD32
1 files changed, 16 insertions, 16 deletions
diff --git a/community/libftdi1/APKBUILD b/community/libftdi1/APKBUILD
index 4cf5068292..303072b398 100644
--- a/community/libftdi1/APKBUILD
+++ b/community/libftdi1/APKBUILD
@@ -1,38 +1,38 @@
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=libftdi1
-pkgver=1.4
-pkgrel=3
+pkgver=1.5
+pkgrel=0
pkgdesc="A library to talk to FTDI chips"
url="https://www.intra2net.com/en/developer/libftdi/download.php"
arch="all"
license="LGPL-2.1-or-later AND GPL-2.0-only"
-makedepends="cmake doxygen swig libusb-dev"
+makedepends="cmake doxygen swig libusb-dev confuse-dev"
subpackages="$pkgname-static $pkgname-dev"
install="$pkgname.pre-install $pkgname.post-upgrade"
source="http://www.intra2net.com/en/developer/libftdi/download/libftdi1-$pkgver.tar.bz2
01-CMakeLists-no-lib-suffix.patch"
build() {
- mkdir "$builddir/build"
-
- cd "$builddir/build"
- cmake -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_SKIP_BUILD_RPATH=ON \
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DEXAMPLES=OFF \
- -DFTDI_EEPROM=ON ..
- make
+ -DFTDI_EEPROM=ON \
+ ${CMAKE_CROSSOPTS} .
+ cmake --build build
}
package() {
- cd "$builddir/build"
- make DESTDIR="$pkgdir" install
-
- mkdir -p "$pkgdir"/lib/udev/rules.d/
- install -Dm644 ../packages/99-libftdi.rules \
+ DESTDIR="$pkgdir" cmake --build build --target install
+ install -Dm644 packages/99-libftdi.rules \
"$pkgdir"/lib/udev/rules.d/99-$pkgname.rules
}
-sha512sums="dbab74f7bc35ca835b9c6dd5b70a64816948d65da1f73a9ece37a0f0f630bd0df1a676543acc517b02a718bc34ba4f7a30cbc48b6eed1c154c917f8ef0a358fc libftdi1-1.4.tar.bz2
+sha512sums="c525b2ab6aff9ef9254971ae7d57f3549a36a36875765c48f947d52532814a2a004de1232389d4fe824a8c8ab84277b08427308573476e1da9b7db83db802f6f libftdi1-1.5.tar.bz2
5583fcb66414d9668bcbff0ad8a688f419414040b9480e24edde8de9f0fecb4bf4e06db7bfb0b7542fd44eff712ad7f72c8c32b5dc27885c26f1707b06485f1b 01-CMakeLists-no-lib-suffix.patch"