Skip to content

Commit 9c93dca

Browse files
committed
bookget: use bookget instead of bookget-bin
1 parent d6991f4 commit 9c93dca

File tree

3 files changed

+39
-22
lines changed

3 files changed

+39
-22
lines changed

archlinuxcn/bookget-bin/PKGBUILD

Lines changed: 0 additions & 19 deletions
This file was deleted.

archlinuxcn/bookget/PKGBUILD

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Maintainer: taotieren <[email protected]>
2+
# Maintainer: DeepChirp <[email protected]>
3+
4+
pkgname=bookget
5+
pkgver=25.0701
6+
pkgrel=1
7+
pkgdesc="A tool for downloading digitized classics, currently supporting 50+ digital libraries."
8+
arch=('x86_64' 'aarch64')
9+
url="https://github.com/deweizhu/bookget"
10+
license=('GPL-3.0-only')
11+
provides=(${pkgname})
12+
conflicts=("${pkgname%}-git" "${pkgname%}-bin")
13+
depends=(glibc)
14+
optdepends=('dezoomify-rs: Zoomable image downloader for Google Arts & Culture, Zoomify, IIIF, and others')
15+
makedepends=(go)
16+
source=("$pkgname-$pkgver.tar.gz::https://github.com/deweizhu/bookget/archive/refs/tags/v$pkgver.tar.gz")
17+
sha256sums=('f4b6aa4762b2fa4b96147fd2a70613ced7cf0f69bfeed394eb8ecd44c955d4bd')
18+
19+
build() {
20+
cd "$srcdir/$pkgname-$pkgver"
21+
export CGO_CPPFLAGS="${CPPFLAGS}"
22+
export CGO_CFLAGS="${CFLAGS}"
23+
export CGO_CXXFLAGS="${CXXFLAGS}"
24+
export CGO_LDFLAGS="${LDFLAGS}"
25+
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
26+
export GO111MODULE=on
27+
export GOPROXY=https://goproxy.cn,direct
28+
29+
mkdir -pv build/
30+
go build -o build/${pkgname} ./cmd/
31+
}
32+
33+
package() {
34+
cd "$srcdir/$pkgname-$pkgver"
35+
36+
install -Dm755 build/${pkgname} -t ${pkgdir}/usr/bin/
37+
install -Dm0644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
38+
}

archlinuxcn/bookget-bin/lilac.yaml renamed to archlinuxcn/bookget/lilac.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ maintainers:
55
build_prefix: extra-x86_64
66

77
pre_build_script: update_pkgver_and_pkgrel(_G.newver)
8-
post_build_script: |
9-
git_pkgbuild_commit()
10-
update_aur_repo()
8+
post_build_script: git_pkgbuild_commit()
119

1210
update_on:
1311
- source: github

0 commit comments

Comments
 (0)