blob: 32ee93e57cf94685a65b1a4b6b151fafa2c9cb9a (
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
|
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
_pkgname='nmly'
pkgname="${_pkgname}-git"
pkgver=1.1.1.r11.gbdb2577
pkgrel=1
pkgdesc='Bulk rename utility with useful functions'
arch=('x86_64')
url='https://github.com/Usbac/nmly'
license=('MIT')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
make -C "${_pkgname}" LDFLAGS="${LDFLAGS}"
}
package() {
cd "${_pkgname}"
install -Dvm755 "${_pkgname}" -t "${pkgdir}/usr/bin"
install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${_pkgname}"
install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}
# vim: ts=2 sw=2 et:
|