blob: ce3fb4c5b0f56d9d72d030458f7517ea454146fa (
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
|
# Maintainer: jsm <0x6a736d@gmail.com>
pkgname=btpd-git
pkgver=449.a3a10df
pkgrel=4
pkgdesc="BitTorrent Protocol Daemon"
arch=('i686' 'x86_64')
url="https://github.com/btpd/btpd"
license=('custom:btpd')
depends=(openssl)
makedepends=(git)
provides=(btpd)
conflicts=(btpd)
source=(git+https://github.com/btpd/btpd
btpd.service
btpd.install)
sha256sums=(SKIP
c161a573c23f21d146a1cba4270a5aae25b23197a3f79842246f376fe81e600f
181631c0f234edd637ee63979a407b015d789a4b5ef91eecc6b274cc56239a2b)
_gitname="btpd"
install="btpd.install"
pkgver() {
cd "$srcdir/$_gitname"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_gitname"
./configure
make
}
package() {
local installopts="--mode 0644 -D"
local sysddir="$pkgdir/usr/lib/systemd/user"
local licdir="$pkgdir/usr/share/licenses/$pkgname"
install $installopts "$srcdir/btpd.service" "$sysddir/btpd.service"
install $installopts "$srcdir/$_gitname/LICENSE" "$licdir/LICENSE"
cd "$srcdir/$_gitname"
make DESTDIR="$pkgdir/" install
}
|