| 
									
										
										
										
											2013-04-02 08:50:15 -04:00
										 |  |  | # Maintainer: Aaron Lindsay <aaron@aclindsay.com> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname | 
					
						
							|  |  |  | pkgname=libevhtp | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # The version number for the software | 
					
						
							| 
									
										
										
										
											2013-10-13 21:21:37 -04:00
										 |  |  | pkgver=1.2.6 | 
					
						
							| 
									
										
										
										
											2013-04-02 08:50:15 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase | 
					
						
							| 
									
										
										
										
											2013-10-13 21:21:37 -04:00
										 |  |  | pkgrel=1 | 
					
						
							| 
									
										
										
										
											2013-04-02 08:50:15 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # The description of the package, should be about 80 characters long (one line) | 
					
						
							|  |  |  | pkgdesc="A more flexible replacement for libevent's httpd API." | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # The type of processor this software can build and work on. See PKGBUILD#arch | 
					
						
							| 
									
										
										
										
											2013-07-16 08:46:33 -04:00
										 |  |  | arch=('i686' 'x86_64' 'armv6h' 'armv7h') | 
					
						
							| 
									
										
										
										
											2013-04-02 08:50:15 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # The official website for the software your PKGBUILD will install | 
					
						
							|  |  |  | url="https://github.com/ellzey/libevhtp" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # The License that the software is released under. See PKGBUILD#license | 
					
						
							|  |  |  | license=('BSD') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator | 
					
						
							|  |  |  | depends=('libevent>=2.0.0') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Packages that must be installed to build the software, but at not necessary to run it | 
					
						
							|  |  |  | makedepends=('cmake') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Optional packages that extend the software's functionality | 
					
						
							|  |  |  | optdepends=() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # List of Package names that this PKGBUILD provides. Put modified packages that will be installed here. | 
					
						
							|  |  |  | provides=() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Change the default behavior of makepkg see PKGBUILD#options | 
					
						
							|  |  |  | options= | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | source=("https://github.com/ellzey/libevhtp/archive/${pkgver}.zip") | 
					
						
							| 
									
										
										
										
											2013-10-13 21:21:37 -04:00
										 |  |  | sha256sums=('60ad11dbbf82b62e34e65ed3bcf3d038b01de445caf9f452ac41b4cff5119639') | 
					
						
							| 
									
										
										
										
											2013-04-02 08:50:15 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | build () { | 
					
						
							|  |  |  | 	cd "$srcdir/$pkgname-$pkgver" | 
					
						
							|  |  |  | 	cmake -DCMAKE_INSTALL_PREFIX=/usr ./ | 
					
						
							|  |  |  | 	make libevhtp | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package () { | 
					
						
							|  |  |  | 	#install library and header files | 
					
						
							|  |  |  | 	cd "$srcdir/$pkgname-$pkgver" | 
					
						
							|  |  |  | 	make DESTDIR="$pkgdir/" install | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	#copy license over | 
					
						
							|  |  |  | 	mkdir -p $pkgdir/usr/share/licenses/$pkgname | 
					
						
							|  |  |  | 	cp LICENSE $pkgdir/usr/share/licenses/$pkgname/ | 
					
						
							|  |  |  | } |