blob: 560b570194d981cd53d841c05af6d542bef19c59 (
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
54
|
# Maintainer: VCalV
_pkgname=gourou
pkgname="${_pkgname}-git"
pkgver=r145.d9a920b
pkgrel=1
pkgdesc="Download and decrypt adobe encrypted (acsm) pdf and epub files (git version)"
arch=('x86_64')
license=('LGPL-3.0-only')
url="https://forge.soutade.fr/soutade/libgourou"
depends=(glibc gcc-libs zlib libzip openssl pugixml curl)
makedepends=(git)
conflicts=(gourou gourou-bin)
provides=("gourou=${pkgver}" "libgourou=${pkgver}")
options=(strip)
source=(
"git://forge.soutade.fr/soutade/libgourou.git"
"git://forge.soutade.fr/soutade/updfparser.git"
"build.patch"
)
sha512sums=('SKIP'
'SKIP'
'624a89ffbb4387ec8e91e3003522d9b0516b47ff7609251dd8fae61f363471c756892d496b8c8d01acdc5d78082b3dc7ed61003661dc0bf79a137c404380b4de'
)
pkgver() {
cd "libgourou"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare(){
cd libgourou
for patch in build; do
patch --forward --strip=1 --input="../$patch.patch"
done
}
build(){
cd updfparser
make BUILD_STATIC=1 BUILD_SHARED=0
cd ../libgourou
mkdir -p lib
make PWD=`pwd` BUILD_STATIC=1 BUILD_SHARED=1
}
package() {
cd libgourou
DESTDIR=$pkgdir PREFIX=/usr make install install_headers
install -Dm444 ./utils/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|