blob: 531c09a18b9357d46d1c741cdb902c2081a96734 (
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
|
# Maintainer: Tommaso Leonardi <aur@itm6.xyz>
pkgname=git-branch-name
pkgver='0.0.2'
pkgrel=1
pkgdesc='Optimally fast branch name command for Git'
arch=('x86_64')
url='https://github.com/itchyny/git-branch-name'
license=('MIT')
depends=('glibc')
provides=('git-branch-name')
source=("$pkgname-$pkgver.tar.gz::https://github.com/itchyny/git-branch-name/archive/v$pkgver.tar.gz")
noextract=()
b2sums=('17ede2e043317ab15d721b41583c27c29576d2fd38e692ab67845f82816986c442ab7d55908ed88653d2b7c39c4974a0b11e7ca31a9c5a1d8e509673d11a1a98')
build() {
cd "$pkgname-$pkgver"
autoreconf -i
./configure --prefix=/usr
make
}
check() {
cd "$pkgname-$pkgver"
./git-branch-name --help &> /dev/null
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
|