blob: 5a472d0dbb42d02b4a82a777950c6c8d1b331b07 (
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
|
pkgname=em-marine
pkgver=0.0.3.0
pkgrel=1
pkgdesc="EM-marine reader software with Ethernet interface (TCP / IP)"
arch=('x86_64')
url="https://github.com/khvalera/${pkgname}"
license=('GPL2')
makedepends=("lazarus" "git" "which")
source=("https://github.com/khvalera/${pkgname}/archive/${pkgver}.tar.gz")
md5sums=('803d301b3c1889e13cc0da2367360bb5')
backup=( "etc/${pkgname}/options.ini" )
package(){
cd "$srcdir/${pkgname}-${pkgver}"
export lazbuild=$(which lazbuild)
${lazbuild} em_marine.lpi
# Create folders
mkdir -p ${pkgdir}/etc/${pkgname} \
${pkgdir}/usr/bin \
${pkgdir}/usr/share/pixmaps/${pkgname} \
${pkgdir}/usr/share/applications \
${pkgdir}/usr/share/doc/${pkgname} \
${pkgdir}/usr/share/licenses/${pkgname} \
${pkgdir}/usr/share/locale/en/LC_MESSAGES \
${pkgdir}/usr/share/locale/ru/LC_MESSAGES \
${pkgdir}/usr/share/locale/uk/LC_MESSAGES
# Copy files
install -m755 em-marine "${pkgdir}/usr/bin/${pkgname}"
install -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 options.ini "${pkgdir}/etc/${pkgname}"
install -Dm 644 ${pkgname}.desktop "${pkgdir}/usr/share/applications"
msgfmt PO/em_marine.po \
-o ${pkgdir}/usr/share/locale/en/LC_MESSAGES/${pkgname}.mo
msgfmt PO/em_marine.ru.po \
-o ${pkgdir}/usr/share/locale/ru/LC_MESSAGES/${pkgname}.mo
cp -r images/* ${pkgdir}/usr/share/pixmaps/${pkgname}/
}
|