blob: 6187d52105123ad882cc4b0973864faa2823d378 (
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
|
# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
_pkgname=ceiba-dl
pkgname=$_pkgname-git
pkgver=0.5.r1.ga977f8d
pkgrel=2
pkgdesc='NTU CEIBA data downloader / NTU CEIBA 資料下載工具'
arch=(i686 x86_64)
license=(LGPL3)
url='https://github.com/lantw44/ceiba-dl'
depends=('python-lxml' 'python-pycurl' 'python-xdg' 'webkit2gtk>=2.20')
makedepends=('autoconf-archive' 'git')
conflicts=("$_pkgname")
provides=("$_pkgname=$pkgver")
source=('git+https://github.com/lantw44/ceiba-dl')
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
( set -o pipefail
git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
)
}
prepare() {
cd $_pkgname
autoreconf -ifv
}
build() {
cd $_pkgname
# The default is --enable-compile-warnings=error, which breaks the build
./configure \
--prefix=/usr \
--enable-compile-warnings=yes
make
}
package() {
cd $_pkgname
make DESTDIR="$pkgdir" install
}
|