blob: 8a852e30e771eed6fd8a14b9d297cdc40dac8915 (
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
|
# Maintainer: Sibren Vasse <arch@sibrenvasse.nl>
pkgname=kepubify
pkgver=4.0.4
pkgrel=2
pkgdesc='Convert your ePubs into kepubs, with a easy-to-use command-line tool'
arch=('x86_64')
url='https://pgaskin.net/kepubify/'
license=('MIT')
conflicts=('kepubify-bin')
makedepends=('go')
options=(!lto)
source=("https://github.com/pgaskin/kepubify/archive/v$pkgver.tar.gz")
sha256sums=('a3bf118a8e871b989358cb598746efd6ff4e304cba02fd2960fe35404a586ed5')
build() {
cd "$pkgname-$pkgver"
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode=external -extldflags=$LDFLAGS -X main.version=$pkgver" \
-o $pkgname \
github.com/pgaskin/kepubify/v4/cmd/kepubify/
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode=external -extldflags=$LDFLAGS -X main.version=$pkgver" \
-o covergen \
github.com/pgaskin/kepubify/v4/cmd/covergen/
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode=external -extldflags=$LDFLAGS -X main.version=$pkgver" \
-o seriesmeta \
github.com/pgaskin/kepubify/v4/cmd/seriesmeta/
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 kepubify "${pkgdir}/usr/bin/kepubify"
install -Dm755 covergen "${pkgdir}/usr/bin/covergen"
install -Dm755 seriesmeta "${pkgdir}/usr/bin/seriesmeta"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|