summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d8097adcfbe4a46e4f8f78a9fd2454a94a357979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Maintainer: nezbednik <nezbedniklmao at gmail dot com>
pkgname=length-cpp
pkgver=1.0.0
pkgrel=2
arch=("any")
makedepends=("gcc")
source=("https://github.com/nezbednik/length-cpp/archive/016c37d877c481d4f03870fe0c9a2471e76b5241.zip")
sha256sums=("d61e2414c8f369cf5264ada06ff91e6ec3414368b10bab23143f129c8e5f00ed")

build() {
    cd "$srcdir"
    cd length-cpp-*
    g++ -O2 -s -DNDEBUG length.h main.cpp -o ../length-cpp
}

package() {
    mkdir -p "$pkgdir/usr/bin"
    install --mode=755 "$srcdir/length-cpp" "$pkgdir/usr/bin"
}