summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d545e1847f0431c752c55a27db2aa6e6141e02d (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
# Maintainer: Nathan Osman <nathan@quickmediasolutions.com>

pkgname='win32pe'
pkgver='0.1.0'
pkgrel=1
pkgdesc="C++ library for working with Win32 PE files"
arch=('i686' 'x86_64')
license=('MIT')
url="http://github.com/nathan-osman/win32pe"
makedepends=('cmake' 'boost>=1.58')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/nathan-osman/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('479a8ca8b84c30ff0737d43ab0c80d843c1870d76e77186ad0034e2f9de9eb5e')

prepare() {
    mkdir build
}

build() {
    cd build
    cmake ../${pkgname}-${pkgver} \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release
    make
}

package() {
    cd build
    make DESTDIR="${pkgdir}" install
}