blob: 0cca0f733910b0dede9776922b0b41ea34190e61 (
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
41
42
43
44
45
46
47
|
# Maintainer: David Cooper <david@dtcooper.com>
pkgname=butt-appimage
_pkgname=butt
pkgver=1.44.0
pkgrel=1
pkgdesc="Easy to use, multi OS streaming tool (AppImage release)."
arch=('x86_64')
url='https://danielnoethen.de/butt/'
license=('GPL-2.0-or-later')
depends=('fuse2')
_appimage_filename="${_pkgname}-${pkgver}-x86_64.AppImage"
source=(
"https://danielnoethen.de/butt/release/${pkgver}/${_appimage_filename}"
"https://danielnoethen.de/butt/release/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
)
sha256sums=('32502fa5f58e534a241b0fa9721e07d6ce5debca42234c9b91441a75db1aa3aa'
'd910b40a10dbca1ce377ee239c146e4746e8b48550ba0a40d6b5199b5c87e0a7')
options=(!strip)
provides=("${_pkgname}")
conflicts=("${_pkgname}")
prepare() {
cd "${srcdir}"
chmod +x "${_appimage_filename}"
./${_appimage_filename} --appimage-extract usr/share/applications/${_pkgname}.desktop > /dev/null 2>&1
./${_appimage_filename} --appimage-extract usr/share/icons > /dev/null 2>&1
}
package() {
install -Dm755 "${srcdir}/${_appimage_filename}" "${pkgdir}/opt/${_pkgname}/${_appimage_filename}"
for txtfile in AUTHORS ChangeLog COPYING KNOWN_BUGS NEWS README THANKS; do
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${txtfile}" "${pkgdir}/usr/share/doc/${_pkgname}/${txtfile}"
done
install -dm755 "${pkgdir}/usr/share/licenses/${_pkgname}"
ln -s "/usr/share/doc/${_pkgname}/COPYING" "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
install -Dm755 "${srcdir}/squashfs-root/usr/share/applications/${_pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -dm755 "${pkgdir}/usr/bin/"
ln -s "/opt/${_pkgname}/${_appimage_filename}" "${pkgdir}/usr/bin/${_pkgname}"
}
|