summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc40860f12766dec49d2412ac42eed0526dce76c (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
38
39
40
# Maintainer: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=pcrio-git
pkgver=46.8839373
pkgrel=1
pkgdesc='C library for editing resource strings in pe/coff files.'
arch=('i686' 'x86_64')
url='https://github.com/sandsmark/pcrio'
license=('BSD')
depends=('glibc')
makedepends=('git')
conflicts=(pcrio)
provides=(pcrio)
source=('git+https://github.com/sandsmark/pcrio.git')
md5sums=('SKIP')

pkgver() {
    cd pcrio
    printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    mkdir -p build
}

build() {
    cd build
    cmake ../pcrio \
        -DCMAKE_BUILD_TYPE=RelDebug \
        -DCMAKE_INSTALL_PREFIX=/usr \

    make
}


package() {
    install -Dm644 pcrio/COPYING ${pkgdir}/usr/share/licenses/pcrio-git/COPYING
    cd build
    make DESTDIR="$pkgdir" install
}