blob: c6c1830e1b2d365b32693f2fc6ee72e223a10689 (
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
|
# Maintainer: HLFH <gaspard@dhautefeuille.eu>
pkgname=yacy-git
pkgver=1.92.r1497.g3d3bdb0f5
pkgrel=2
pkgdesc="Peer to peer search engine"
arch=('any')
url=https://www.yacy.net/
license=('GPL2')
depends=('java-environment')
makedepends=('apache-ant')
install=yacy.install
source=(git+https://github.com/yacy/yacy_search_server
'yacy.service')
options=(!emptydirs)
b2sums=('SKIP'
'e704efd6d4ea583df6851c12d41e7fd7c7d5acc40c1b22b48fb827c6ec7d996b7ecbb8c945354be649278b9e6e23763014606960f62b1193aa6c1495b1e5aa6f')
pkgver() {
cd yacy_search_server
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/^Release_//;s/v//;s/-/./g'
}
build() {
cd "$srcdir/yacy_search_server"
ant clean all dist
}
package() {
cd "$srcdir/yacy_search_server/RELEASE"
# Find the latest .tar.gz file
latest_file=$(ls -v yacy_v*.tar.gz | tail -n 1)
# Extract the latest file
tar xfz "$latest_file"
install -d "$pkgdir"/usr/share/java
cp -r yacy/ "$pkgdir/usr/share/java"
install -Dm644 "${srcdir}/yacy.service" "${pkgdir}/usr/lib/systemd/system/yacy.service"
rm -f "$pkgdir"/etc/yacy "$pkgdir"/usr/share/java/yacy/DATA "$pkgdir"/var/log/yacy
}
|