diff options
author | Martin T. H. Sandsmark | 2020-07-20 16:00:22 +0200 |
---|---|---|
committer | Martin T. H. Sandsmark | 2020-07-20 16:00:22 +0200 |
commit | f8cdde4b03f8b0dc4d5fbe8bbbccfc8c8c516283 (patch) | |
tree | 0d79d88ae5054b058c7167f0b3c86270c70fa5b8 | |
download | aur-f8cdde4b03f8b0dc4d5fbe8bbbccfc8c8c516283.tar.gz |
init
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fb7fd43195fd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = bincalc + pkgdesc = A simple command line calculator for bit fiddling (e. g for reverse engineering) + pkgver = 1 + pkgrel = 1 + url = https://github.com/sandsmark/bincalc + arch = x86_64 + arch = i686 + license = GPL2 + makedepends = gcc + depends = gmp + source = https://github.com/sandsmark/bincalc/archive/1.tar.gz + sha256sums = eae53cb18818f4d875686c653c6394af06a8029968661314100067589e277128 + +pkgname = bincalc + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7e29bcf88101 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +pkgname=bincalc +pkgver=1 +pkgrel=1 +pkgdesc='A simple command line calculator for bit fiddling (e. g for reverse engineering)' +url='https://github.com/sandsmark/bincalc' +arch=('x86_64' 'i686') +license=('GPL2') +makedepends=(gcc) +depends=(gmp) +source=("https://github.com/sandsmark/bincalc/archive/${pkgver}.tar.gz") +sha256sums=('eae53cb18818f4d875686c653c6394af06a8029968661314100067589e277128') + +build() { + cd bincalc-${pkgver} + + # gnu make and/or gcc are broken + LDFLAGS+=,--no-as-needed + + make +} + +package() { + cd bincalc-${pkgver} + install -D -m755 bincalc -t "${pkgdir}/usr/bin" +} |