patchelfcrc/AUR/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

2022-10-23 16:00:15 +02:00
# Maintainer: Mario Hüttel <mario (dot) huettel (!) gmx (dot) net>
pkgname=patchelfcrc
pkgver=v1.2_10_g00d02b8
pkgrel=1
2022-10-23 16:02:15 +02:00
pkgdesc="Tool for patching CRC checksums of sections into ELF binaries"
2022-10-23 16:00:15 +02:00
arch=('i686' 'x86_64')
2022-10-23 16:02:15 +02:00
url="https://git.shimatta.de/mhu/patchelfcrc"
2022-10-23 16:00:15 +02:00
licence=('GPLv2')
2022-10-23 16:02:15 +02:00
depends=('libelf')
2022-10-23 16:00:15 +02:00
makedepends=('cmake' 'git')
2022-10-23 16:02:15 +02:00
provides=('patchelfcrc')
2022-10-23 16:00:15 +02:00
source=("${pkgname}-git"::"git+https://git.shimatta.de/mhu/patchelfcrc" "git+https://git.shimatta.de/3rd-party/libfort.git" "git+https://git.shimatta.de/mhu/linklist-lib")
2022-10-23 16:02:15 +02:00
sha1sums=('SKIP' 'SKIP' 'SKIP')
2022-10-23 16:00:15 +02:00
pkgver () {
_date=`date +"%Y%m%d"`
cd "${srcdir}/${pkgname}-git"
echo "$(echo "$(sh ./gen-version-string.sh)" | sed 's/-/_/g')"
}
build () {
mkdir "$srcdir/$pkgname-git/build"
cd "$srcdir/$pkgname-git/build"
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j12
}
prepare () {
cd "${pkgname}-git"
git submodule init
git config submodule.libfort.url "$srcdir/libfort"
git config submodule.linklist-lib "$srcdir/linklist-lib"
git submodule update
}
package () {
install -Dm "$srcdir/$pkgname-git/build/patchelfcrc" "$pkgdir/usr/bin/patchelfcrc"
}