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

pkgname=esearch
_pkgdirname="pacman-$pkgname"
pkgver=1.5.2
pkgrel=1
pkgdesc="Replacement for both pacman -Ss and pacman -Si"
arch=('x86_64')
url="https://github.com/KLZ-0/pacman-esearch"
license=('MIT')
makedepends=('git' 'cmake')
source=("git+https://github.com/KLZ-0/pacman-esearch#branch=master")

md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgdirname"
    echo $(grep "define VERSION" src/main.cpp | cut -d'"' -f 2)
}

build() {
    cd "$srcdir/$_pkgdirname/src"
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -B ./ ../
    make
}

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