summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 234082b0aab913d06bf8cbb72ae45f3299579658 (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
# Maintainer: bilabila <bilabila@qq.com>
_srcname=BaiduExporter
_pkgname=baiduexporter
pkgname=$_pkgname-git
pkgver=r436.7723f32
pkgrel=5
pkgdesc='Assistant for Baidu to export download links to aria2/aria2-rpc'
arch=(x86_64)
url=https://github.com/acgotaku/BaiduExporter
provides=($_pkgname $_srcname)
conflicts=($_pkgname $_srcname)
license=(GPL3)
source=(git+https://github.com/acgotaku/BaiduExporter)
sha512sums=(SKIP)
install=$pkgname.install
pkgver() {
  cd $_srcname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
    d="$pkgdir"/usr/share
    install -Dm644 $_srcname/LICENSE "$d"/licenses/$_pkgname/LICENSE
    d="$d"/$_pkgname
    cp -rT $_srcname/chrome/release "$d"
    find "$d" -type d -exec chmod 755 {} +
    find "$d" -type f -exec chmod 644 {} +
}