blob: 258d77016de1db7be6184d1916af29f4600e3474 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Sergio Ribera <contact@sergioribera.rs>
#
# This PKGBUILD was generated by `cargo aur`: https://crates.io/crates/cargo-aur
pkgname=simplemoji
pkgver=0.2.1
pkgrel=1
pkgdesc="Fast Application for look your amazing emojis write in Rust"
url="https://github.com/SergioRibera/Simplemoji"
license=("MIT OR Apache-2.0")
arch=("x86_64")
provides=("simplemoji")
conflicts=("simplemoji")
depends=("noto-fonts-emoji" "noto-fonts")
source=("https://github.com/SergioRibera/Simplemoji/releases/download/v0.2.1/simplemoji-x86_64-unknown-linux-gnu.tar.xz")
sha256sums=("4cf0686704bbb4c4eb10c3490847c1ebe85a911a0c6fa3d14cf99d20a132fdca")
package() {
find . -name 'simplemoji' -type f -executable -exec install -Dm755 {} -t "$pkgdir/usr/bin" \;
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
# Instalación opcional de licencias
if [[ -d "$srcdir" ]]; then
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
pushd "$srcdir" >/dev/null
if [[ -f "LICENSE-APACHE" && -s "LICENSE-APACHE" ]]; then
install -Dm644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
else
echo "Warning: License file 'LICENSE-APACHE' missing or empty - skipping" >&2
fi
if [[ -f "LICENSE-MIT" && -s "LICENSE-MIT" ]]; then
install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
else
echo "Warning: License file 'LICENSE-MIT' missing or empty - skipping" >&2
fi
popd >/dev/null
else
echo "Warning: No license files found in $srcdir" >&2
fi
}
|