blob: e901dfe2cef09f576cc79e175ecb49afbbaa56eb (
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
|
# Maintainer: Dmytro Meleshko <dmytro.meleshko@gmail.com>
_pkgname=rx
pkgname=${_pkgname}-bin
pkgver=0.5.2
pkgrel=1
pkgdesc="A modern and extensible pixel editor implemented in Rust (this package downloads and extracts the official AppImage)"
arch=("x86_64")
url="https://rx.cloudhead.io/"
license=("GPL3")
depends=("libx11" "gcc-libs" "glibc")
provides=(${_pkgname})
conflicts=(${_pkgname})
options=(!strip)
_appimage_file="$_pkgname-$pkgver-$CARCH.AppImage"
source=("https://github.com/cloudhead/rx/releases/download/v$pkgver/$_appimage_file")
noextract=("$_appimage_file")
sha256sums=('070c14ff9449543dc6cac13715fcc6e0437778d11dcbf83bab4f1f85d01d4a00')
build() {
chmod +x "$_appimage_file"
mkdir -p "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
../"$_appimage_file" --appimage-extract
}
package() {
cd "$pkgname-$pkgver/squashfs-root"
install -Dm755 "usr/bin/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 "usr/share/applications/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
install -Dm644 "usr/share/icons/hicolor/64x64/apps/$_pkgname.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
}
|