Date: Friday, October 7, 2022 @ 07:55:40
  Author: grawlinson
Revision: 1323782

archrelease: copy trunk to community-any

Added:
  hblock/repos/community-any/
  hblock/repos/community-any/PKGBUILD
    (from rev 1323781, hblock/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: hblock/repos/community-any/PKGBUILD (from rev 1323781, 
hblock/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2022-10-07 07:55:40 UTC (rev 1323782)
@@ -0,0 +1,41 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Héctor Molinero Fernández <hector at molinero dot dev>
+# Contributor: Erazem Kokot <contact at erazem dot eu>
+
+pkgname=hblock
+pkgver=3.4.0
+pkgrel=2
+pkgdesc='Adblocker that creates a hosts file from multiple sources'
+arch=('any')
+url='https://hblock.molinero.dev/'
+license=('MIT')
+depends=('sh' 'curl' 'systemd')
+makedepends=('git')
+_commit='dccbca2570e7410d84f04e7dbdfca768f708e2f5'
+source=("$pkgname::git+https://github.com/hectorm/hblock#commit=$_commit";)
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+check() {
+  cd "$pkgname"
+
+  make test
+}
+
+package() {
+  cd "$pkgname"
+
+  make DESTDIR="$pkgdir" prefix='/usr' install
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+  cp -vr resources/alt-formats "$pkgdir/usr/share/doc/$pkgname"
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
+}

Reply via email to