diff options
Diffstat (limited to 'nmly/PKGBUILD')
-rw-r--r-- | nmly/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nmly/PKGBUILD b/nmly/PKGBUILD new file mode 100644 index 0000000..f6549cd --- /dev/null +++ b/nmly/PKGBUILD | |||
@@ -0,0 +1,30 @@ | |||
1 | # Maintainer: Caltlgin Stsodaat <[email protected]> | ||
2 | |||
3 | pkgname='nmly' | ||
4 | pkgver=1.1.1 | ||
5 | pkgrel=1 | ||
6 | pkgdesc='Bulk rename utility with useful functions' | ||
7 | arch=('x86_64') | ||
8 | url='https://github.com/Usbac/nmly' | ||
9 | license=('MIT') | ||
10 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") | ||
11 | sha256sums=('d593cd1adb056bf61e6a7e9c72961642727229f5b00e07c0d330d8dc8fb3a0e7') | ||
12 | |||
13 | prepare() { | ||
14 | # Add LDFLAGS to Makefile | ||
15 | sed -i.bak '/\$(CFLAGS)/s/$/ \$(LDFLAGS)/' "${pkgname}-${pkgver}/Makefile" | ||
16 | } | ||
17 | |||
18 | build() { | ||
19 | export LDFLAGS="${LDFLAGS}" | ||
20 | make -C "${pkgname}-${pkgver}" | ||
21 | } | ||
22 | |||
23 | package() { | ||
24 | cd "${pkgname}-${pkgver}" | ||
25 | install -Dm755 -t "${pkgdir}/usr/bin" "${pkgname}" | ||
26 | install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md' | ||
27 | install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" 'LICENSE' | ||
28 | } | ||
29 | |||
30 | # vim: ts=2 sw=2 et: | ||