summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b2d7d2e8f9869291c9b6cad1ca00a3d885ef9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Owen Trigueros <owentrigueros@gmail.com>

pkgname=httpdirfs
pkgver=1.3.3
pkgrel=1
pkgdesc="A filesystem which allows you to mount HTTP directory listings"
arch=('x86_64')
url="https://github.com/fangfufu/httpdirfs"
license=('GPL')
depends=('gumbo-parser' 'fuse3' 'curl' 'expat' 'util-linux-libs' 'openssl')
makedepends=('meson' 'help2man' 'doxygen' 'graphviz')
source=("$pkgname-$pkgver.tar.gz::https://github.com/fangfufu/$pkgname/archive/$pkgver.tar.gz"
         "httpdirfs.patch")
md5sums=("61cd87fde28aeaec7d39e38f533dc058"
         "068486cabbb5818ba1e019976f2ed340")

prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i ../httpdirfs.patch
}

build() {
  arch-meson "$pkgname-$pkgver" build -Dc_args="-std=gnu17"
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}