-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD.fineftp
36 lines (32 loc) · 1.07 KB
/
PKGBUILD.fineftp
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
#!/bin/bash
# Maintained by imper <imperator999mcpe@gmail.com>
pkgname=fineftp-server
pkgver=1.3.3
pkgrel=1
pkgdesc="FineFTP is a minimal FTP server library for Windows and Unix flavors"
arch=('any')
url="https://github.com/continental/fineftp-server"
license=('MIT')
depends=('asio')
makedepends=()
optdepends=()
source=(https://github.com/eclipse-ecal/fineftp-server/archive/v$pkgver.tar.gz
Findasio.cmake.patch)
sha512sums=('788d6e17a58c365dc5a320065d2b95f5b046d8bec57def2016b46e450e6ec0f142dd6faaec64004fba5f67af1545f4724567721e3ae576195711de349f91be47'
'5a157af2c9cf573c2649ffecc99edba86383985c5adaba2ad318098c2709e907147c8ce5c359d423b04e60f237e37c3f81d59daaa0a4a7146245e668aa801865')
prepare() {
patch --forward --strip=1 --input="../Findasio.cmake.patch" "$pkgname-$pkgver/cmake/Findasio.cmake"
}
build() {
cd $pkgname-$pkgver
mkdir -p _build
cd _build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make -j 8
}
package() {
cd $pkgname-$pkgver
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd _build
DESTDIR="$pkgdir" make install
}