summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43a738227226d2e34f63a0bbd2bdaafdaaf0eac9 (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: Tomasz Wisniewski <tomasz.wisni3wski@gmail.com>
pkgname=bashnapi
pkgver=2.0.0
pkgrel=1
pkgdesc="bashnapi is a napiprojekt.pl bash client bundled with subotage - a universal subtitles format converter"
arch=('any')
url="https://github.com/dagon666/napi"
license=('GPL')
groups=()
depends=('bash' 'coreutils' 'sed' 'gawk' 'file' 'cmake' 'grep' 'findutils' 'wget')
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/dagon666/napi/archive/v${pkgver}.tar.gz")
noextract=()
md5sums=('c86efaa856f7e80e993456aff9ced322')

build() {
    builddir="${pkgname}-${pkgver}-build"
    srcdir="napi-${pkgver}"
    mkdir -p "$builddir"
    cd "$builddir"
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" ../${srcdir}
    make
}

package() {
    builddir="${pkgname}-${pkgver}-build"
    cd "$builddir"
    make install
}