summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e929448039e7f78db010cff5713d48f1ec09b612 (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.2.0
pkgrel=1
pkgdesc="A filesystem which allows you to mount HTTP directory listings"
arch=('any')
url="https://github.com/fangfufu/httpdirfs"
license=('GPL')
depends=('gumbo-parser' 'fuse2' 'openssl')
makedepends=('gumbo-parser' 'fuse2' 'openssl')
source=("https://github.com/fangfufu/$pkgname/archive/$pkgver.tar.gz")
md5sums=("5c9c31c39217da0a9ff44b4cae5704eb")

prepare() {
	cd "$pkgname-$pkgver"

    # Replace /usr/local prefix with /usr
    sed -i 's/^prefix ?= \/usr\/local/prefix ?= \/usr/' Makefile 
}
build() {
	cd "$pkgname-$pkgver"
	make
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
}