File: PKGBUILD

package info (click to toggle)
ctpp2 2.8.3-20.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,548 kB
  • sloc: cpp: 21,074; ansic: 413; makefile: 76; php: 24; perl: 20; sh: 4
file content (25 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (3)
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
# Maintainer: Valentin V. Bartenev <i@vbart.ru>

pkgname=ctpp2
pkgver=2.8.0
pkgrel=1
pkgdesc="Template engine completely written in C++"
arch=('i686' 'x86_64')
url="http://ctpp.havoc.ru/en/"
optdepends=('gettext: gettext support')
makedepends=('cmake' 'make' 'patch')
source=(http://ctpp.havoc.ru/download/ctpp2-$pkgver.tar.gz)
license=('custom:BSD-like')
#md5sums=('')

build() {
  cd $srcdir/$pkgname-$pkgver
  mkdir build
  cd build
  cmake .. || return 1
  make || return 1
  make DESTDIR=$pkgdir install || return 1
  install -Dm 644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
} 

# Enjoy! ;)