summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 697264d2934edbe3741ef544e66681a6428d4e1b (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
32
33
34
35
36
37
# Maintainer: Fabio Germann <fabio.germann+aur@gmail.com>

pkgname=sedutil-sleep-git
pkgver=1.15.1.r3.gecfd482
pkgrel=1
pkgdesc="TCG OPAL 2.00 SED Management Program - including S3 sleep support"
arch=('i686' 'x86_64')
url="https://github.com/fabiogermann/sedutil"
license=('GPL3')
source=("${pkgname%-git}::git+$url#branch=s3-sleep-support")
sha256sums=('SKIP')

makedepends=(
    'git'
)

pkgver() {
    cd "${pkgname%-git}"
    ( set -o pipefail
        git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

build() {
    cd "${pkgname%-git}"
    autoreconf || true
    automake --add-missing
    autoreconf
    ./configure
    make
}

package() {
    _release="Release_$CARCH"
    cd "${pkgname%-git}"
    install -Dm755 "sedutil-cli" "${pkgdir}/usr/bin/sedutil-sleep"
}