Skip to content

Commit 4b0afa0

Browse files
committed
add Arch Linux package
1 parent 42660f3 commit 4b0afa0

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
/man1
33
/crypt
44
/tst
5+
/*.pkg.tar.zst
6+
/pkg
7+
/src

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export PATH := $(CURDIR):$(PATH)
22
export MANPATH := $(CURDIR):$(MANPATH)
33
VERBOSE :=
4-
TESTREPO := ~/sysconf
4+
TESTREPO := $(CURDIR)
55
KEY := 5A8A11E44AD2A1623B84E5AFC5C0C5C7218D18D7
66
REPO := incrypt::$(CURDIR)/crypt
77

@@ -27,7 +27,7 @@ test: man
2727
git -C $(TESTREPO) fetch $(REPO) || git -C $(TESTREPO) incrypt trust $(REPO)
2828
git -C $(TESTREPO) push $(VERBOSE) $(REPO) master~2:refs/heads/master
2929
git clone $(VERBOSE) $(REPO) tst
30-
git -C $(TESTREPO) push $(VERBOSE) $(REPO) secrettag
30+
git -C $(TESTREPO) push $(VERBOSE) $(REPO) v0.9.0
3131
git -C tst pull $(VERBOSE)
3232
git -C $(TESTREPO) push $(VERBOSE) $(REPO) master
3333
git -C tst pull $(VERBOSE)

PKGBUILD

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Maintainer: Robert Schiele <[email protected]>
2+
3+
pkgname=git-incrypt
4+
pkgver=0.9.0
5+
pkgrel=1
6+
pkgdesc="git-incrypt: A git remote helper to encrypt git repositories incrementally"
7+
arch=('i686' 'x86_64')
8+
url="https://github.com/schiele/git-incrypt/"
9+
license=('GPL2')
10+
depends=('git' 'python-pygit2')
11+
makedepends=('asciidoc' 'xmlto')
12+
source=("COPYING" "FORMAT.md" "Makefile" "README.md" "asciidoc.conf" "git-incrypt" "git-incrypt.adoc" "manpage-bold-literal.xsl" "manpage-normal.xsl")
13+
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
14+
15+
build() {
16+
make clean
17+
make
18+
gzip man1/git-incrypt.1
19+
}
20+
21+
package() {
22+
mkdir -p "$pkgdir"/usr/lib/git-core
23+
install -m 755 git-incrypt "$pkgdir"/usr/lib/git-core/
24+
ln -s git-incrypt "$pkgdir"/usr/lib/git-core/git-remote-incrypt
25+
mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
26+
install -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/
27+
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
28+
install -m 644 FORMAT.md "$pkgdir"/usr/share/doc/$pkgname/
29+
install -m 644 README.md "$pkgdir"/usr/share/doc/$pkgname/
30+
mkdir -p "$pkgdir"/usr/share/man/man1
31+
install -m 644 man1/git-incrypt.1.gz "$pkgdir"/usr/share/man/man1/
32+
}

0 commit comments

Comments
 (0)