blob: 84bd562e64142d88fc4eb5859c47a0d48107a1df (
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
|
# Maintainer: <andrew dot myers at wanadoo dot fr>
pkgname=storecards
pkgver=0.4
pkgrel=1
pkgdesc="Keep all your store cards on your linux phone"
arch=('any')
url="https://gitlab.com/AndyM48/storecards"
license=('GPL')
depends=('tcl' 'tk' 'zint')
optdepends=('sane: for scanning Store Cards'
'imagemagick: for converting scanned images'
'pinephone-toolkit: to raise the backlight for barcode scanning'
)
source=(https://gitlab.com/AndyM48/$pkgname/archive/$pkgver.tar.gz)
source=(https://gitlab.com/AndyM48/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz)
md5sums=('44729094032a8d86b473bd2aee8c0346')
package() {
cd "$srcdir/$pkgname-$pkgver"
# /usr/share/pixmaps/storecards
install -d "$pkgdir"/usr/share/pixmaps/storecards
install -m644 icons/* "$pkgdir"/usr/share/pixmaps/storecards
# /usr/bin
install -d "$pkgdir"/usr/bin
install -m755 storecards "$pkgdir"/usr/bin/
# /usr/share/applications
install -d "$pkgdir"/usr/share/applications
install -m644 storecards.desktop "$pkgdir"/usr/share/applications/
# ~/.local/share/storecards
path="${HOME}/.local/share"
group=`id -gn ${USER}`
install -d -o ${USER} -g ${group} "$pkgdir"$path/storecards
install -m644 -o ${USER} -g ${group} data/* "$pkgdir"$path/storecards
}
|