Selaa lähdekoodia

Initial import: 1.2.9

Moritz Maxeiner 10 vuotta sitten
commit
68a87fe409
2 muutettua tiedostoa jossa 56 lisäystä ja 0 poistoa
  1. 20 0
      .SRCINFO
  2. 36 0
      PKGBUILD

+ 20 - 0
.SRCINFO

@@ -0,0 +1,20 @@
+pkgbase = libevhtp-seafile
+	pkgdesc = A more flexible replacement for libevent's httpd API. [Built for seafile]
+	pkgver = 1.2.9
+	pkgrel = 1
+	url = https://github.com/ellzey/libevhtp
+	arch = i686
+	arch = x86_64
+	arch = armv5te
+	arch = armv6h
+	arch = armv7h
+	license = BSD
+	makedepends = cmake
+	depends = libevent>=2.0.0
+	provides = libevhtp
+	conflicts = libevhtp
+	source = https://github.com/ellzey/libevhtp/archive/1.2.9.zip
+	sha256sums = 9007ed1e6e4509b677267d4cea69248a84da6e43552c6363e0f09c55f4795f68
+
+pkgname = libevhtp-seafile
+

+ 36 - 0
PKGBUILD

@@ -0,0 +1,36 @@
+# Maintainer: Moritz Maxeiner <moritz@ucworks.org>
+
+# Contributor: Aaron Lindsay <aaron@aclindsay.com>
+
+_pkgname=libevhtp
+pkgname="${_pkgname}"-seafile
+pkgver=1.2.9
+pkgrel=1
+pkgdesc="A more flexible replacement for libevent's httpd API. [Built for seafile]"
+arch=('i686' 'x86_64' 'armv5te' 'armv6h' 'armv7h')
+url="https://github.com/ellzey/libevhtp"
+license=('BSD')
+depends=('libevent>=2.0.0')
+makedepends=('cmake')
+optdepends=()
+provides=('libevhtp')
+conflicts=('libevhtp')
+options=()
+source=("https://github.com/ellzey/libevhtp/archive/${pkgver}.zip")
+
+build () {
+	cd "${srcdir}/${_pkgname}-${pkgver}"
+	cmake -DCMAKE_INSTALL_PREFIX=/usr -DEVHTP_DISABLE_SSL=ON -DEVHTP_BUILD_SHARED=ON ./
+	make
+}
+
+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}/
+}
+sha256sums=('9007ed1e6e4509b677267d4cea69248a84da6e43552c6363e0f09c55f4795f68')