Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mfgtools-git #2988

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions archlinuxcn/mfgtools-git/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
*.*
taotieren marked this conversation as resolved.
Show resolved Hide resolved
49 changes: 49 additions & 0 deletions archlinuxcn/mfgtools-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Maintainer: taotieren <[email protected]>

pkgname=mfgtools-git
pkgver=1.5.4.r2.gf7aaaae
pkgrel=1
epoch=
pkgdesc="uuu (Universal Update Utility), mfgtools 3.0. Freescale/NXP I.MX Chip image deploy tools."
arch=('x86_64')
url="https://github.com/NXPmicro/mfgtools"
license=('BSD')
groups=()
depends=('bzip2' 'zlib' 'libusb' 'libzip' 'openssl')
makedepends=('cmake' 'git')
checkdepends=()
optdepends=()
provides=('uuu' 'mfgtool')
conflicts=(${pkgname%-git})
replaces=()
backup=()
options=('!strip')
install=
changelog=
source=("${pkgname%-git}::git+${url}.git"
"uuu-complete.bash")
noextract=()
sha256sums=('SKIP'
'ffc8e32655ce574a4719c85c5c9a3530a5ec619e933fc801a291df8ec506a442')
#validpgpkeys=()

pkgver() {
cd "${srcdir}/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/uuu_//g' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd "${srcdir}/${pkgname%-git}"
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make -C build
}

package() {
cd "${srcdir}/${pkgname%-git}/build"
make DESTDIR="$pkgdir/" install
install -Dm0644 "${srcdir}/uuu-complete.bash" "${pkgdir}/etc/bash_completion.d/uuu-complete.bash"
install -Dm0644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
install -dm0755 "${pkgdir}/etc/udev/rules.d/"
./uuu/uuu -udev > "${pkgdir}/etc/udev/rules.d/70-uuu.rules"

}
14 changes: 14 additions & 0 deletions archlinuxcn/mfgtools-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()

update_on:
- source: github
github: NXPmicro/mfgtools
5 changes: 5 additions & 0 deletions archlinuxcn/mfgtools-git/uuu-complete.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_uuu_autocomplete()
{
COMPREPLY=($(/usr/bin/uuu $1 $2 $3))
}
complete -o nospace -F _uuu_autocomplete uuu