summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e33ec01c628fb297aa4000619041714258388cf7 (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
# Maintainer: Ethan Cheng <ethanrc0528 at gmail dot com>
pkgname='utf-8-steg-git'
pkgver=0.2.2.r3.g18ace60
pkgrel=1
pkgdesc="Encodes/decodes data into zero-width utf-8 characters"
arch=(any)
url="https://github.com/yadayadajaychan/utf-8-steg"
license=('GPL3')
depends=('glibc' 'openssl')
makedepends=('git' 'gcc')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")

source=(git+https://github.com/yadayadajaychan/utf-8-steg.git?signed#branch=master)
md5sums=('SKIP')
validpgpkeys=(1624691AAB618B49D8AE10BE046F1347562492CC)

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/${pkgname%-git}"
	gcc main.c -o utf-8-steg -l crypto
}

package() {
	mkdir -p "$pkgdir/usr/bin"
	mv "$srcdir/${pkgname%-git}/utf-8-steg" "$pkgdir/usr/bin"
	ln -rsT "$pkgdir/usr/bin/utf-8-steg" "$pkgdir/usr/bin/steg"

	mkdir -p "$pkgdir/usr/share/man/man1"
	cp "$srcdir/${pkgname%-git}/utf-8-steg.1" "$pkgdir/usr/share/man/man1/"
}