blob: 2be1373f6f2a87a7b9437a91d88deab4d541b9ac (
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: JSH <jsh6789@gmail.com>
pkgname=tt-rss-plugin-api-resize-git
pkgver=r28.070d17c
pkgrel=1
pkgdesc="Allows TT-RSS API clients to request downscaled images"
arch=('any')
url="https://git.tt-rss.org/fox/ttrss-api-resize"
license=('GPL3')
depends=('tt-rss' 'php-gd')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
installdir="${pkgdir}/usr/share/webapps/tt-rss/plugins/api_resize_media"
install -m 755 -d "${installdir}"
cd "$srcdir/${pkgname%-git}"
cp -R * "${installdir}"
find "${installdir}" -type d -exec chmod 755 '{}' \; -type f -exec chmod 644 '{}' \;
}
|