blob: c94cf2ae572c9aad67ad4617cc9ba46476a742f0 (
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: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
_name="sysrescueusbwriter"
pkgname="systemrescue-usbwriter"
pkgver=1.0.2
pkgrel=2
pkgdesc="Tool to write SystemRescue to a USB memory stick"
arch=('any')
url="https://gitlab.com/systemrescue/${pkgname}"
license=('GPL-3.0-or-later')
depends=('bash' 'dialog' 'fuse2' 'isomd5sum' 'libisoburn' 'syslinux')
_pkgsrc="${pkgname}-${pkgver}"
source=("${_pkgsrc}.tar.gz::${url}/-/archive/${pkgver}/${_pkgsrc}.tar.gz")
sha256sums=('b2decf6ae54d4cefd3234fe015a1fb668bcbd958079a43eeab178c5fa8d4a562')
build() {
cd "${srcdir}/${_pkgsrc}/AppDirSrc/usr/bin"
sed -e 's/${APPDIR}//g' \
-e 's|$("${BINDIR}/cat" "/usr/share/versions/sysrescueusbwriter")|'"${pkgver}|g" \
-e 's|$("${BINDIR}/cat" "/usr/share/versions/sysrescueusbwriter-builddate")|'"$(date +%Y-%m-%d)|g" \
-e 's@$("${BINDIR}/cat" "/usr/share/versions/syslinux")@$(pacman -Q syslinux | sed -e "s#syslinux \\(.*\\)#\\1#")@g' \
-i "${_name}"
# -e '1i#!/bin/bash' \
}
package() {
cd "${srcdir}/${_pkgsrc}"
install -vDm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "AppDirSrc/usr"
find "bin" -type f -exec install -vDm755 "{}" "${pkgdir}/usr/{}" \;
cd "share"
find "applications" "metainfo" -type f -exec \
install -vDm644 "{}" "${pkgdir}/usr/share/{}" \;
cd "icons/hicolor/64x64/apps"
install -vDm644 "${_name}.png" "${pkgdir}/usr/share/pixmaps/${_name}.png"
}
|