blob: 4539aa141e7c9d72ec48815f388730dc9d44b669 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Aleksandr <contact at via dot aur>
pkgname=ptokax
_pkgname=PtokaX
pkgver=0.5.2.2
pkgrel=3
pkgdesc="PtokaX Direct Connect Hub is a multi-platform server application for Neo-Modus Direct Connect Peer-To-Peer sharing network."
arch=('x86_64')
url="http://www.PtokaX.org"
license=('GPL')
makedepends=('dos2unix')
depends=('lua' 'tinyxml' 'zlib')
makedepends=('make' 'gcc')
optdepends=('postgresql-libs'
'sqlite'
'mariadb')
install=install
changelog=
source=("$url/files/$pkgver-nix-src.tgz"
'service'
'sysusers'
'SettingManager.cpp.patch'
'tmpfiles'
'Settings.pxt')
prepare() {
cd "$srcdir/$_pkgname/core"
dos2unix -f SettingManager.cpp
patch --binary -p0 -i ../../SettingManager.cpp.patch
}
build() {
cd "$_pkgname"
# Compile PtokaX without database support
make fedora
# Compile PtokaX with PostgreSQL database support
#make -f makefile-postgres fedora
# Compile PtokaX with MariaDB database support
#make -f makefile-mysql fedora
# Compile PtokaX with SQLite database support
#make -f makefile-sqlite fedora
}
package() {
cd "$_pkgname"
install -dm0755 "$pkgdir/var/lib/$pkgname/cfg"
install -Dm0755 PtokaX "$pkgdir/usr/bin/$pkgname"
install -Dm0644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -Dm0644 "$srcdir/tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
install -Dm0644 "$srcdir/sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm0644 "$srcdir"/Settings.pxt "$pkgdir/var/lib/$pkgname/cfg/Settings.pxt"
install -Dm0644 License.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm0644 Changelog.txt "$pkgdir/usr/share/doc/$pkgname/CHANGELOG"
install -Dm0644 ReadMe.txt "$pkgdir/usr/share/doc/$pkgname/README"
}
md5sums=('0d5ca7ae81be69eb351fadfd1a498217'
'fa9ba9566428af9603297aea1343ced2'
'2df6b09b987a6b6e1e96ef6bc8a7a19e'
'5f50852f8b1f490391e6593a51028590'
'6a20c3ddfb3c625cca55f7480e609e1e'
'25b7201edc7c31fd6b14a0d61ee0e1cc')
|