diff options
author | Askhat | 2023-09-12 21:27:43 +0700 |
---|---|---|
committer | Askhat | 2023-09-12 21:27:43 +0700 |
commit | 83700d751f99398cb378f3c15a2b413063d23fb0 (patch) | |
tree | f96f80532a825ae0c76a5c9641e0bad95ca51462 | |
download | aur-flakyflash-git.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..58781eace144 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = flakyflash-git + pkgdesc = a Linux-based tool for diagnosing and salvaging FAT- and exFAT-formatted flash media having flaky sectors that do not retain data correctly + pkgver = r21.04bee13 + pkgrel = 1 + url = https://github.com/whitslack/flakyflash + arch = x86_64 + license = custom:Unlicense + depends = glibc + depends = gcc-libs + provides = flakyflash + conflicts = flakyflash + source = git+https://github.com/whitslack/flakyflash.git + md5sums = SKIP + +pkgname = flakyflash-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4bb12df40bbe --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: + +pkgname=flakyflash-git +_pkgname=flakyflash +pkgver=r21.04bee13 +pkgrel=1 +pkgdesc='a Linux-based tool for diagnosing and salvaging FAT- and exFAT-formatted flash media having flaky sectors that do not retain data correctly' +url='https://github.com/whitslack/flakyflash' +arch=(x86_64) +license=('custom:Unlicense') +conflicts=(flakyflash) +provides=(flakyflash) +depends=('glibc' 'gcc-libs') +optdepends=() +source=('git+https://github.com/whitslack/flakyflash.git') +md5sums=('SKIP') + + +pkgver() { + cd "$_pkgname" + # git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" +} + +prepare() { + cd $_pkgname + git submodule update --init --recursive +} + +build() { + cd "$_pkgname" + make +} + +package() { + cd "$_pkgname" + install -Dm755 "out/$(gcc -dumpmachine)/$_pkgname" "$pkgdir/usr/bin/$_pkgname" + + install -Dm644 UNLICENSE "$pkgdir/usr/share/licenses/$_pkgname/UNLICENSE" +} |