blob: 56e4cdc3db65d50682cf34fc5a618bd011201709 (
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
|
pkgname=xdg-ninja
pkgver=0.2.0.2
pkgrel=3
pkgdesc='A shell script which checks your $HOME for unwanted files and directories'
arch=('any')
url="https://github.com/b3nj5m1n/${pkgname}"
license=('MIT')
options=('!strip')
depends=('jq')
optdepends=('glow: for rendering markdown in the terminal')
_snapshot="${pkgname}-${pkgver}"
source=("${url}/archive/v${pkgver}/${_snapshot}.tar.gz")
sha256sums=('6adfe289821b6b5e3778130e0d1fd1851398e3bce51ddeed6c73e3eddcb806c6')
prepare() {
cd "${_snapshot}"
sed -i 'Makefile' -e 's/LICENSE//'
}
package() {
cd "${_snapshot}"
DESTDIR="${pkgdir}" PREFIX='/usr' make install
install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|