summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49c6f2ee20b3f68f2f05fb6f33f636a0b2641ddb (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
# Maintainer: bemxio <bemxiov at protonmail dot com>

pkgname="jstrings"
pkgdesc="A tool for finding JIS-based Japanese characters in binary data"

pkgver=1.6
pkgrel=1

arch=(x86_64 i386)

url="https://github.com/drojaazu/jstrings"
license=("MIT")

depends=(libiconv)
makedepends=(cmake)

provides=(jstrings)

source=("https://github.com/drojaazu/jstrings/archive/refs/tags/${pkgver}.tar.gz")
md5sums=("SKIP")

prepare() {
	# move into the source directory
	cd "jstrings-${pkgver}"

	# create a build directory
	mkdir -p build && cd build

	# generate a Makefile
	cmake ..
}

build() {
	# move into the build directory
	cd "jstrings-${pkgver}/build"

	# build the project
	make
}

package() {
	# move into the source directory
	cd "jstrings-${pkgver}"

	# copy the main executable and the license
	install -Dm755 build/jstrings "${pkgdir}/usr/bin/jstrings"
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}