blob: a7dee3ec50adab80e6b0d83d40e930a2f2a49879 (
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
|
# Maintainer: x1b6e6 <ftdabcde@gmail.com>
pkgname=pnghide-git
pkgver=0.2.3.r3.gb152869
pkgrel=2
pkgdesc="hide plain text in png file inside pixels (unvisible changes)."
url="https://github.com/x1b6e6/pnghide.git"
license=("MIT")
arch=('any')
depends=("libpng" "docopt")
makedepends=("gcc" "make" "cmake" "png++")
optdepends=("aes: for encryping data")
conflicts=("pnghide")
provides=("pnghide")
pkgver() {
cd $srcdir/${pkgname%-git}
git describe --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/'
}
source=("git+${url}")
sha1sums=("SKIP")
build(){
cd $srcdir/${pkgname%-git}
cmake -Bbuild -G "Unix Makefiles"
cmake --build build --target all
}
package() {
cd "$srcdir"
install -Dm755 "$srcdir/${pkgname%-git}/build/pnghide" "$pkgdir/usr/bin/pnghide"
}
# vim: set ts=4 sw=4 :
|