summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoraksr2020-04-22 05:42:46 +0200
committeraksr2020-04-22 05:42:46 +0200
commit3e338b3f5917c8de1081aae59b439a7438958716 (patch)
treea0fb73d9397276316deeda62e525bd40411b9299 /PKGBUILD
downloadaur-ugrep-git.tar.gz
Start.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..24626a57142
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: aksr <aksr at t-com dot me>
+pkgname=ugrep-git
+pkgver=2.0.2.r1.gc47f5c5
+pkgrel=1
+pkgdesc="Ultra fast interactive searcher of file systems, text and binary files, source code, archives, compressed files, documents, and more."
+arch=('i686' 'x86_64')
+url="https://github.com/Genivia/ugrep"
+license=(BSD)
+depends=(pcre2 zlib bzip2 xz)
+makedepends=(git)
+conflicts=("${pkgname%-*}")
+source=("$pkgname::git+$url")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//'
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ ./build.sh --prefix=${pkgdir}/usr/
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make install
+ install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
+}