As hinted at earlier by @einbisschen, this package should create /etc/profile.d/android-sdk-build-tools.sh
with the content export PATH=$PATH:/opt/android-sdk/build-tools/27.0.3
Perhaps adding mkdir -p etc/profile.d
and echo -e "export PATH=\"\$PATH:/opt/$_sdk/build-tools/$ver\"\n" > $pkgdir/etc/profile.d/$pkgname.sh
to PKGBUILD would do the trick?
EDIT: it may also make sense to have a latest
symlink... Something like ln -sf /opt/$_sdk/build-tools/$ver opt/$_sdk/build-tools/latest
, if so perhaps this should be what is added to the PATH instead. Although it is probably a good idea to check no higher version already exists, which may make a simple feature a bit more complex.
Pinned Comments
aminvakil commented on 2025-03-26 13:43 (UTC)
This repository is maintained at https://github.com/aminvakil/aur.
In case anyone had any suggestions about anything, feel free to raise a PR there.