From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- nmly | 1 - nmly/.SRCINFO | 12 ++++++++++++ nmly/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) delete mode 160000 nmly create mode 100644 nmly/.SRCINFO create mode 100644 nmly/PKGBUILD (limited to 'nmly') diff --git a/nmly b/nmly deleted file mode 160000 index f713477..0000000 --- a/nmly +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f71347755e54fc0530bfeeef5fa8b07d9ca8d889 diff --git a/nmly/.SRCINFO b/nmly/.SRCINFO new file mode 100644 index 0000000..ed957f7 --- /dev/null +++ b/nmly/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = nmly + pkgdesc = Bulk rename utility with useful functions + pkgver = 1.1.1 + pkgrel = 1 + url = https://github.com/Usbac/nmly + arch = x86_64 + license = MIT + source = nmly-1.1.1.tar.gz::https://github.com/Usbac/nmly/archive/v1.1.1.tar.gz + sha256sums = d593cd1adb056bf61e6a7e9c72961642727229f5b00e07c0d330d8dc8fb3a0e7 + +pkgname = nmly + diff --git a/nmly/PKGBUILD b/nmly/PKGBUILD new file mode 100644 index 0000000..f6549cd --- /dev/null +++ b/nmly/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Caltlgin Stsodaat + +pkgname='nmly' +pkgver=1.1.1 +pkgrel=1 +pkgdesc='Bulk rename utility with useful functions' +arch=('x86_64') +url='https://github.com/Usbac/nmly' +license=('MIT') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('d593cd1adb056bf61e6a7e9c72961642727229f5b00e07c0d330d8dc8fb3a0e7') + +prepare() { + # Add LDFLAGS to Makefile + sed -i.bak '/\$(CFLAGS)/s/$/ \$(LDFLAGS)/' "${pkgname}-${pkgver}/Makefile" +} + +build() { + export LDFLAGS="${LDFLAGS}" + make -C "${pkgname}-${pkgver}" +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 -t "${pkgdir}/usr/bin" "${pkgname}" + install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md' + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" 'LICENSE' +} + +# vim: ts=2 sw=2 et: -- cgit v1.2.3-70-g09d2