summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnders Damsgaard2021-08-10 10:18:04 +0200
committerAnders Damsgaard2021-08-10 10:18:04 +0200
commit67985d1df486a3622bbf768bb166a47fc55a9283 (patch)
tree6246915ee6b2353e475a32d671f8f468fc5f5a6b /PKGBUILD
downloadaur-67985d1df486a3622bbf768bb166a47fc55a9283.tar.gz
Add to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f879aa9de88
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Anders Damsgaard <anders@adamsgaard.dk>
+pkgname=hurl
+pkgver=0.5
+pkgrel=1
+pkgdesc='HTTP/HTTPS/Gopher file grabber'
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+url='https://codemadness.org/hurl.html'
+_url_source='https://codemadness.org/releases/hurl'
+license=('ISC')
+depends=('libretls')
+conflicts=('hurl-bin')
+source=("${_url_source}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('92429a6c11689b1dfb2efe27faf5e3344cb4a00d78a365ee4fbbf10537a1077e')
+
+build() {
+ make CFLAGS="-DPOSIX_C_SOURCE=201112L -D_GNU_SOURCE" -C "${pkgname}-${pkgver}"
+}
+
+package() {
+ make DESTDIR="${pkgdir}" PREFIX='/usr' MANDIR='/usr/share/man' -C "${pkgname}-${pkgver}" install
+ install -Dvm644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}