Skip to content

Commit

Permalink
to-release: released packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Oct 21, 2023
1 parent 0d29ce6 commit e11833c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion lists/to-release
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
exe2hexbat
17 changes: 2 additions & 15 deletions packages/exe2hexbat/PKGBUILD → packages/exe2hex/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,15 @@ sha512sums=('SKIP')

pkgver() {
cd $pkgname

git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
cd $pkgname

install -dm 755 "$pkgdir/usr/bin"
install -dm 755 "$pkgdir/usr/share/$pkgname"
install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md

install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

rm -rf LICENSE *.md

cp -a * "$pkgdir/usr/share/$pkgname/"

cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
exec python /usr/share/$pkgname/exe2hex.py "\$@"
EOF

chmod a+x "$pkgdir/usr/bin/$pkgname"
}

0 comments on commit e11833c

Please sign in to comment.