summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5fad3ebd4c03199aa1b56de093a075a60f55289 (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
30
31
# Maintainer: Adrián Kálazi <adrian@kalazi.com>

pkgname=esearch
_pkgdirname="pacman-$pkgname"
pkgver=4.4.1
_gittag="v$pkgver"
pkgrel=1
pkgdesc="Replacement for pacman -Ss and pacman -Si"
arch=("x86_64")
url="https://github.com/KLZ-0/pacman-esearch"
license=("MIT")
makedepends=("git" "cmake" "gcc" "python")
provides=("esearch")
source=("git+https://github.com/KLZ-0/pacman-esearch#tag=${_gittag}")

md5sums=("SKIP")

pkgver() {
    cd "$srcdir/$_pkgdirname"
    echo $(grep "define VERSION" src/def.h | grep -E -o "[0-9\\.]+")
}

build() {
    cd "$srcdir/$_pkgdirname"
    make
}

package() {
    cd "$srcdir/$_pkgdirname"
    make DESTDIR="$pkgdir/" install
}