summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: afc3a70d5730049f12633cedca88c51a0c40c2f8 (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
# Maintainer: Stephen Gregoratto <dev@sgregoratto.me>
pkgname=tscrape-git
pkgver=0.4.r9.g8e11f80
pkgrel=1
pkgdesc='Twitter feed scraper'
url='https://git.codemadness.org/tscrape.html'
license=('ISC')
provides=('tscrape')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
depends=('curl')
makedepends=('git')
source=("${pkgname%-git}::git+git://git.codemadness.org/tscrape"
        "tscrape-git.patch" )
sha256sums=('SKIP'
            '1912e1fcc8ac0d3edc7dad5a96ffa7091c0057611c2dc538780e4a5e5d809d18')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare(){
  cd "${pkgname%-git}"
  patch -Np1 -i "${srcdir}/tscrape-git.patch"
}

build() {
  cd "${pkgname%-git}"
  make
}

package() {
  cd "${pkgname%-git}"
  make DESTDIR="$pkgdir" install
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}