AUR git package
frostworx opened this issue · 4 comments
frostworx commented
Hi,
you've been ycombinatored, so I found you :)
Thank you for this neat tool :)
I just created an initial Arch AUR package imgcatr-git (so rolling from git source).
Not sure what should be added as depends, so I only respected makedepends (git, rust) for now.
micwoj92 commented
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,10 @@ pkgdesc="cat for images"
arch=('x86_64')
url="https://github.com/SilinMeng0510/${_pkgname}"
license=('MIT')
-makedepends=('git' 'rust')
+provides=('imgcatr')
+conflicts=('imgcatr')
+depends=('gcc-libs' 'glibc')
+makedepends=('git' 'cargo')
source=("git+https://github.com/SilinMeng0510/$_pkgname.git")
sha256sums=('SKIP')
@@ -18,9 +21,10 @@ pkgver() {
build() {
cd "$_pkgname"
- cargo build --release --workspace
+ cargo build --release
}
package() {
install -Dm755 "${_pkgname}/target/release/${_pkgname}" "$pkgdir/usr/bin/${_pkgname}"
+ install -Dm 644 "$_pkgname/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
}
RiverOnVenus commented
I fixed it
micwoj92 commented
this issue can now be closed