blob: 5500e27f19f9f3b3b922a9242e9ef637f8d10486 (
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
|
# Maintainer: Patrik Karlström <pata.karlstrom@gmail.com>
pkgname=filebydate
pkgver=2.0.0
pkgrel=1
pkgdesc="date based file organizer"
arch=('any')
url="https://trixon.se/projects/filebydate/"
license=('Apache')
depends=('java-openjfx>=8')
makedepends=('desktop-file-utils')
source=(
"https://trixon.se/files/$pkgname-$pkgver-bin.zip"
'filebydate.sh'
'filebydate.desktop'
)
sha256sums=(
'08a3171cd1fb688f812d3b0908a364cbf531dd90b1a0891f97e6a3bb65c475b5'
'c2597c42471798834798ddee7f9dcef7a0811b181b2f335699f131f2ccafeca0'
'3fc348ada388e3dcb265a83837d3f264ff1ff1cc07973c42384d8cf928c2f2fd'
)
package() {
pushd "$srcdir/$pkgname-$pkgver"
# jars
install -d "$pkgdir/usr/share/java/filebydate"
find -name '*.jar' -execdir install -m644 {} "$pkgdir/usr/share/java/filebydate" \;
# icon
install -d "$pkgdir/usr/share/icons/hicolor/256x256/apps"
install -m644 filebydate.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/filebydate.png"
popd
# launchers
install -Dm755 "$srcdir/filebydate.sh" "$pkgdir/usr/bin/filebydate"
# .desktop
desktop-file-install $pkgname.desktop --dir "$pkgdir/usr/share/applications/"
# remove version from filename
mv "$pkgdir/usr/share/java/filebydate/filebydate-${pkgver}.jar" "$pkgdir/usr/share/java/filebydate/filebydate.jar"
}
|