summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31be3731ca3ea49ba9f8d6dcfe3e6e699db5e208 (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
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: tvoor <ftdabcde@gmail.com>
pkgname=png_sec
pkgver=0.1.1.8
pkgrel=2
epoch=
pkgdesc="tool to encrypt text and hide it in .png file"
arch=('any')
url=""
license=('GPL')
groups=()
depends=('libgcrypt' 'libpng')
makedepends=('cmake' 'make' 'git')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=('png_sec-git')
backup=()
options=()
install=
changelog=
source=(
	"$pkgname::git+https://github.com/DOGINFOG/png_sec.git#tag=v$pkgver"
	"git+https://github.com/DOGINFOG/cmake_scripts.git"
)
noextract=()
md5sums=('SKIP' 'SKIP')
validpgpkeys=('C5C2DEE155D3872B8BA531226EEC3334E3C22821')

prepare() {
	cd "$pkgname"
	git submodule init
	git config submodule.cmake.url $srcdir/cmake_scripts
	git submodule update
	cmake -Bbuild
}

build() {
	cd "$pkgname"
	make -Cbuild
}

check() {
	cd "$pkgname"
	make -Cbuild test
}

package() {
	cd "$pkgname"
	make -Cbuild DESTDIR=$pkgdir install
}