summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 383b7a3cabd641bb6a4d335d73224e0d98c107fa (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: KingofToasters <themanhimself at sgregoratto dot me>
pkgname=sfeed-git
pkgver=0.9.7.r0.ge59ad05
pkgrel=2
pkgdesc='RSS and Atom parser'
url='https://git.codemadness.org/sfeed'
license=('ISC')
provides=('sfeed')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
makedepends=('git')
depends=('curl')
source=("${pkgname%-git}::git+git://git.codemadness.org/sfeed"
        "sfeed-git.patch")
sha256sums=('SKIP'
            'facc036a5025d52f1ae10aa9b096a86e79072854bfb7e5ab9f5dc5d4d30c20e8')

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

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

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

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