blob: 03457a7bf5426d9aa2e56e4e5a0ae5c925965a20 (
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
|
# Maintainer: Quint Guvernator <quint@guvernator.net>
pkgname="creddit-git"
pkgver=r213.1a45df6f8291
pkgrel=1
pkgdesc='CLI Reddit client written in C.'
arch=('x86_64' 'i686')
url='https://github.com/Cotix/cReddit'
license=('MIT')
depends=('ncurses' 'curl')
makedepends=('git' 'make' 'gcc')
provides=("$pkgname")
conflicts=("$pkgname")
source=("$pkgname::git+http://github.com/Cotix/cReddit.git")
md5sums=('SKIP')
prepare() {
# patch the location of the ncursesw library
patch -p1 -i '../01-ncursesw-is-default-ncurses.patch'
}
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
make PREFIX="$pkgdir/usr/" install
}
|