aboutsummaryrefslogblamecommitdiffstats
path: root/community/libftdi1/APKBUILD
blob: 5754d617921ee2e6b672a1cd28bbb20899c0d746 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                    

          
                                         
                                                                 
          
                          

                                           
                                                    

                                                                                           
                                   
 
         
                               
 
                            



                                             

                                   



                            
                                      


                                                     
                                                            

                                                    
                                             
                                  
                                                 
                                                  
                                             

 
                                                                                                                                                                  
                                                                                                                                                                    
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=libftdi1
pkgver=1.4
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.0 GPL-2.0"
makedepends="cmake doxygen swig libusb-dev"
subpackages="$pkgname-dev $pkgname-doc"
install="$pkgname.pre-install $pkgname.post-upgrade"
source="http://www.intra2net.com/en/developer/libftdi/download/${pkgname}-${pkgver}.tar.bz2
	01-CMakeLists-no-lib-suffix.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	mkdir "$builddir/build"

	cd "$builddir/build"
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_SKIP_BUILD_RPATH=ON \
		-DCMAKE_BUILD_TYPE=Release \
		-DEXAMPLES=OFF \
		-DFTDI_EEPROM=ON ..
	make
}

package() {
	cd "$builddir/build"
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/etc/udev/rules.d/
	install -Dm644 ../packages/99-libftdi.rules \
		"$pkgdir"/etc/udev/rules.d/99-$pkgname.rules

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ \
		"$pkgdir"/usr/share/man/man3/
	install -m644 doc/html/* \
		"$pkgdir"/usr/share/doc/$pkgname/
	install -m644 doc/man/man3/ftdi_eeprom.3 \
		"$pkgdir"/usr/share/man/man3/
}

sha512sums="dbab74f7bc35ca835b9c6dd5b70a64816948d65da1f73a9ece37a0f0f630bd0df1a676543acc517b02a718bc34ba4f7a30cbc48b6eed1c154c917f8ef0a358fc  libftdi1-1.4.tar.bz2
5583fcb66414d9668bcbff0ad8a688f419414040b9480e24edde8de9f0fecb4bf4e06db7bfb0b7542fd44eff712ad7f72c8c32b5dc27885c26f1707b06485f1b  01-CMakeLists-no-lib-suffix.patch"