diff options
author | siers | 2016-09-14 10:24:22 +0300 |
---|---|---|
committer | siers | 2016-09-14 10:24:22 +0300 |
commit | 4d22ddf99c724d505865d7d1a75344ccda502e07 (patch) | |
tree | 87a6015526d74b42d1c3f23a8505f34ebb6b1bab | |
download | aur-4d22ddf99c724d505865d7d1a75344ccda502e07.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 30 |
3 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..74f19e8680ad --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = massren + pkgdesc = Easily rename multiple files using your text editor + pkgver = 20160913 + pkgrel = 1 + url = https://github.com/laurent22/massren + arch = any + license = MIT + makedepends = git + makedepends = go + +pkgname = massren + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..64960fdf0b11 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# vim: ts=2 sw=2 +pkgname=massren +pkgver=20160913 +pkgrel=1 +pkgdesc="Bash wrapper for pacman and aur" +pkgdesc="Easily rename multiple files using your text editor" +url="https://github.com/laurent22/massren" +license=("MIT") +arch=('any') +makedepends=('git' 'go') +depends=() +optdepends=() +source=() +md5sums=() + +build() { + export GOPATH="$srcdir" + export GOBIN="$srcdir/bin" + export PATH=$PATH:$GOPATH/bin + + go get github.com/laurent22/massren + cd src/github.com/laurent22/massren + go build +} + +package() { + sed -n '/## License/,$p' "$srcdir/src/github.com/laurent22/massren/README.md" > "$srcdir/LICENSE" + install -Dm644 "$srcdir/LICENSE" ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + install -Dm755 "bin/massren" "$pkgdir/usr/bin/massren" +} |