blob: e49c35ab475fb6d472aaef78f6f82cd81d329098 (
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
|
# Maintainer: Aditya Sirish <aditya@saky.in>
pkgname=('papeer')
pkgver=0.8.2
pkgrel=1
pkgdesc="Scrape the web in the eink era. Convert websites into ebooks and markdown."
arch=('x86_64')
license=('GPL')
url="https://github.com/lapwat/papeer"
source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('bfcdf62b5bf1804ca269045b511e5ff3767a2faab91113b335aebb7e8739ea2c')
makedepends=('go')
depends=('glibc')
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd "$pkgname-$pkgver"
go build
}
package() {
cd "$pkgname-$pkgver"
install -Dm 755 -t "${pkgdir}/usr/bin" $pkgname
}
|