blob: e90b85ba693dd615efbdeccafa1c1fc2f89b1bb2 (
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 Karlsson <pata.karlsson@gmail.com>
pkgname=filebydate
pkgver=1.1.0
pkgrel=2
pkgdesc="date based file organizer"
arch=('any')
url="https://trixon.se/projects/filebydate/"
license=('Apache')
depends=('java-runtime>=8')
makedepends=('desktop-file-utils')
source=(
"https://trixon.se/files/$pkgname-$pkgver-bin.zip"
'filebydate.sh'
'filebydate.desktop'
)
sha256sums=(
'94a42fd6000a0650f174f85be44e72c8e03055208fe8fea60e455080a22be40a'
'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"
}
|