diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2d504c8982b1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = binv + pkgdesc = Command line tool to bitwise invert a complete file + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/NikolasK-source/bitwise_invert + arch = x86_64 + arch = aarch64 + license = MIT + makedepends = cmake + makedepends = git + source = git+https://github.com/NikolasK-source/bitwise_invert.git#tag=v1.0.0 + sha256sums = SKIP + +pkgname = binv diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..03180195b1a3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Nikolas Koesling <nikolas@koesling.network> + +pkgname=binv +pkgrel=1 +pkgver=1.0.0 +pkgdesc="Command line tool to bitwise invert a complete file" +url="https://github.com/NikolasK-source/bitwise_invert" +license=('MIT') +arch=('x86_64' 'aarch64') +makedepends=('cmake' 'git') +source=("git+https://github.com/NikolasK-source/bitwise_invert.git#tag=v${pkgver}") + +sha256sums=('SKIP') + +prepare() { + cd bitwise_invert + git submodule init + git submodule update + mkdir -p build + cmake -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DBUILD_DOC=OFF -B build . +} + +build() { + cd bitwise_invert + cmake --build build +} + +package() { + cd bitwise_invert + install -Dm755 build/binv "${pkgdir}/usr/bin/binv" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" +} |